new Collapsible(options)
Collapsible control
Parameters:
| Name | Type | Description |
|---|---|---|
options |
nyc.Collapsible.Options | Constructor options |
- Source:
Extends
Members
container :JQuery
A JQuery element representation of the container
Type:
- JQuery
- Source:
currentVal :JQuery
A JQuery element used to display a readable representation of the current value
Type:
- JQuery
- Source:
expanded :JQuery.Event
Proxy the expand event
Type:
- JQuery.Event
- Source:
Methods
off(eventName, evtHdlr, hdlrScopeopt)
Remove a previously connected event handler
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
eventName |
string | The name of the event to which the handler will be connected | |
evtHdlr |
function | The event handler function | |
hdlrScope |
Object |
<optional> |
The scope in which to invoke the event handler |
- Inherited From:
- Source:
on(eventName, evtHdlr, hdlrScopeopt)
Connect a function to an event
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
eventName |
string | The name of the event to which the handler will be connected | |
evtHdlr |
function | The event handler function | |
hdlrScope |
Object |
<optional> |
The scope in which to invoke the event handler |
- Inherited From:
- Source:
one(eventName, evtHdlr, hdlrScopeopt)
Connect a function to an event for a single invocation
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
eventName |
string | The name of the event to which the handler will be connected | |
evtHdlr |
function | The event handler function | |
hdlrScope |
Object |
<optional> |
The scope in which to invoke the event handler |
- Inherited From:
- Source:
trigger(eventName, dataopt)
Trigger a named event with event data
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
eventName |
string | The name of the event to trigger | |
data |
Object |
<optional> |
The event data |
- Inherited From:
- Source:
Type Definitions
Options
Constructor options for nyc.Collapsible
Type:
- Object
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
target |
Element | JQuery | string | The target DOM node for creating the collapsible control | ||
title |
string | The title to display | ||
content |
Element | JQuery | string | Content for the collapsible control | ||
expanded |
boolean |
<optional> |
false | The intial state of the collapsible control |
- Source: