Graphical, interactive tool for choosing/searching data
Notes:
Signature | hs.chooser.globalCallback |
---|---|
Type | Variable |
Description | A global callback function used for various hs.chooser events Notes:
|
Signature | hs.chooser.new(completionFn) -> hs.chooser object |
---|---|
Type | Constructor |
Description | Creates a new chooser object Parameters:
Returns:
Notes:
|
Signature | hs.chooser:bgDark([beDark]) -> hs.chooser object or boolean |
---|---|
Type | Method |
Description | Sets the background of the chooser between light and dark Parameters:
Returns:
Notes:
|
Signature | hs.chooser:cancel() -> hs.chooser object |
---|---|
Type | Method |
Description | Cancels the chooser Parameters:
Returns:
|
Signature | hs.chooser:choices(choices) -> hs.chooser object |
---|---|
Type | Method |
Description | Sets the choices for a chooser Parameters:
Returns:
Notes:
Example:
|
Signature | hs.chooser:delete() |
---|---|
Type | Method |
Description | Deletes a chooser Parameters:
Returns:
|
Signature | hs.chooser:fgColor(color) -> hs.chooser object |
---|---|
Type | Method |
Description | Sets the foreground color of the chooser Parameters:
Returns:
|
Signature | hs.chooser:hide() -> hs.chooser object |
---|---|
Type | Method |
Description | Hides the chooser Parameters:
Returns:
|
Signature | hs.chooser:isVisible() -> boolean |
---|---|
Type | Method |
Description | Checks if the chooser is currently displayed Parameters:
Returns:
|
Signature | hs.chooser:placeholderText([placeholderText]) -> hs.chooser object or string |
---|---|
Type | Method |
Description | Sets/gets placeholder text that is shown in the query text field when no other text is present Parameters:
Returns:
|
Signature | hs.chooser:query([queryString]) -> hs.chooser object or string |
---|---|
Type | Method |
Description | Sets/gets the search string Parameters:
Returns:
Notes:
|
Signature | hs.chooser:queryChangedCallback([fn]) -> hs.chooser object |
---|---|
Type | Method |
Description | Sets/clears a callback for when the search query changes Parameters:
Returns:
Notes:
|
Signature | hs.chooser:refreshChoicesCallback() -> hs.chooser object |
---|---|
Type | Method |
Description | Refreshes the choices data from a callback Parameters:
Returns:
Notes:
|
Signature | hs.chooser:rightClickCallback([fn]) -> hs.chooser object |
---|---|
Type | Method |
Description | Sets/clears a callback for right clicking on choices Parameters:
Returns:
Notes:
|
Signature | hs.chooser:rows([numRows]) -> hs.chooser object or number |
---|---|
Type | Method |
Description | Gets/Sets the number of rows that will be shown Parameters:
Returns:
|
Signature | hs.chooser:searchSubText([searchSubText]) -> hs.chooser object or boolean |
---|---|
Type | Method |
Description | Gets/Sets whether the chooser should search in the sub-text of each item Parameters:
Returns:
Notes:
|
Signature | hs.chooser:select([row]) -> hs.chooser object |
---|---|
Type | Method |
Description | Closes the chooser by selecting the specified row, or the currently selected row if not given Parameters:
Returns:
|
Signature | hs.chooser:selectedRow([row]) -> number |
---|---|
Type | Method |
Description | Get or set the currently selected row Parameters:
Returns:
|
Signature | hs.chooser:selectedRowContents([row]) -> table |
---|---|
Type | Method |
Description | Returns the contents of the currently selected or specified row Parameters:
Returns:
|
Signature | hs.chooser:show([topLeftPoint]) -> hs.chooser object |
---|---|
Type | Method |
Description | Displays the chooser Parameters:
Returns:
|
Signature | hs.chooser:showCallback([fn]) -> hs.chooser object |
---|---|
Type | Method |
Description | Sets/clears a callback for when the chooser window is shown Parameters:
Returns:
Notes:
|
Signature | hs.chooser:subTextColor(color) -> hs.chooser object or hs.color object |
---|---|
Type | Method |
Description | Sets the sub-text color of the chooser Parameters:
Returns:
|
Signature | hs.chooser:width([percent]) -> hs.chooser object or number |
---|---|
Type | Method |
Description | Gets/Sets the width of the chooser Parameters:
Returns:
Notes:
|