ctrl+k
Enter a search term above to see results...
Access and configure Semantic UI web components through Query.
$('selector').component()Retrieves the component instance from a web component.
Component instance, or undefined if not found.
$('selector').initialize(settings)Initializes a component with settings before it renders in the DOM.
| Name | Type | Description |
|---|---|---|
| settings | object | Setting key-value pairs |
Query object for chaining.
$('selector').settings()$('selector').settings(newSettings)Gets or sets component settings. Useful for passing data that cannot be stringified into attributes.
| Name | Type | Description |
|---|---|---|
| newSettings | object | Settings to apply |
Settings object when getting, Query object when setting.
$('selector').setting(name)$('selector').setting(name, value)Gets or sets a single component setting.
| Name | Type | Description |
|---|---|---|
| name | string | Name of the setting |
| value | any | Value to set |
Setting value when getting, Query object when setting.
$('selector').dataContext()Retrieves the data context associated with a component.
Data context object, or undefined if not found.