Constructor
# new DuLibrary()
Properties:
Name | Type | Description |
---|---|---|
list |
ListBox
|
The Listbox with the current items for the library.
Items are extended with new properties, see DuListItem for more details. |
library |
DuLibraryItem
|
The associated library data. Use setLibrary to change it. |
onRun |
DuLibrary~onRun
|
The function used to run the selected item. |
onAltRun |
DuLibrary~onAltRun
|
The function used to run the selected item with alt click. |
onCtrlRun |
DuLibrary~onCtrlRun
|
The function used to run the selected item with ctrl click. |
onCtrlAltRun |
DuLibrary~onCtrlAltRun
|
The function used to run the selected item with ctrl alt click. |
onEditData |
DuLibrary~onEditData
|
The function to execute to edit data. |
onFolderOpened |
DuLibrary~onFolderOpened
|
The function to open a containing folder |
onFolderEdited |
DuLibrary~onFolderEdited
|
The function to edit the folder |
onAddItem |
DuLibrary~onAddItem
|
The function to execute when adding a new item. |
onEditItem |
DuLibrary~onEditItem
|
The function to execute when editing an item. |
onRemoveItem |
DuLibrary~onRemoveItem
|
The function to execute when removing an item. |
onRefresh |
DuLibrary~onRefresh
|
The function to execute to refresh the library. |
setLibrary |
DuLibrary~setLibrary
|
Sets a new library. May be called from onRefresh to replace the lib by a new one. |
runItem |
DuLibrary~setLibrary
|
Runs the selected item. Tied to the apply/run button by default. |
Extends
- Group
Type Definitions
# onAddItem(category)
The function to execute when adding a new item.
Parameters:
Name | Type | Description |
---|---|---|
category |
Object
|
The current category. |
# onAddItem(item, category)
The function to execute when editing an item.
Parameters:
Name | Type | Description |
---|---|---|
item |
DuListItem
|
The item to edit. |
category |
Object
|
The current category. |
# onAltRun(item)
The function used to run the selected item.
Parameters:
Name | Type | Description |
---|---|---|
item |
DuListItem
|
The item to run/apply. |
# onCtrlAltRun(item)
The function used to run the selected item.
Parameters:
Name | Type | Description |
---|---|---|
item |
DuListItem
|
The item to run/apply. |
# onCtrlRun(item)
The function used to run the selected item.
Parameters:
Name | Type | Description |
---|---|---|
item |
DuListItem
|
The item to run/apply. |
# onEditData(item)
The function used to edit an item data.
Parameters:
Name | Type | Description |
---|---|---|
item |
DuListItem
|
The item to edit. |
# onFolderEdited(item, category)
The function to edit the folder.
Parameters:
Name | Type | Description |
---|---|---|
item |
DuListItem
|
The item to edit. |
category |
Object
|
The current category. |
# onFolderOpened(item, category)
The function to open a containing folder.
Parameters:
Name | Type | Description |
---|---|---|
item |
DuListItem
|
The item to edit. |
category |
Object
|
The current category. |
# onRefresh(category)
The function to execute to refresh the library.
Parameters:
Name | Type | Description |
---|---|---|
category |
DuLibraryItem
|
The category to refresh. |
# onRemoveItem(item, category)
The function to execute when removing an item.
Parameters:
Name | Type | Description |
---|---|---|
item |
DuListItem
|
The item to remove. |
category |
Object
|
The current category. |
# onRun(item)
The function used to run the selected item.
Parameters:
Name | Type | Description |
---|---|---|
item |
DuListItem
|
The item to run/apply. |
# setLibrary(newLib)
Sets a new library. May be called from onRefresh to replace the lib by a new one.
Parameters:
Name | Type | Description |
---|---|---|
newLib |
DuLibraryItem
|
The new library. |