jQuery.telligent.evolution.ui.components.poll
UI Component which handles presentation of poll behavior for content. Transforms the output from $core_v2_ui.Poll()
, which is a <span class="ui-poll"></span>
stub. Overrides can be provided at the theme level to present polls differently.
Options
Data made available to instances of the component:
- 'pollid': (string) Poll Id Guid
- 'reportUrl': (string) Url to view vote report
Example
A barebones UI component override which would result in rendering a read-only message of 'Poll Id = ' for a given call to $core_v2_ui.Poll()
.
$.telligent.evolution.ui.components.poll = {
setup: function() {
},
add: function(elm, options) {
$(elm).html('PollId = ' + options.PollId);
}
}