Content (Mixins)
Description
Add a function to manage components content.
Methods
-
content
- String | HTMLElement : The content that will be used by a component. -
options
- Object : A custom options to be used with content loaded by ajax.-
method
- String : The type of request ("POST" or "GET") to load content by ajax. Default: "GET". -
params
- String : Params like query string to be sent to the server. -
cache
- Boolean : Force to cache the request by the browser. Default: true. false value will work only with HEAD and GET requests -
waiting
- String | HTMLElement : Temporary content to use while the ajax request is loading.
-
.this.content(content, options)
Allows to manage the components content.
Events
'contentdone'
Event emitted if the content is loaded successfully.
'contenterror'
Event emitted if the content isn't loaded successfully.
'contentwaiting'
Event emitted when the content is loading.