mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
change paths for cardstack types
This commit is contained in:
parent
1afe082d92
commit
17964ce5cb
7 changed files with 81 additions and 38 deletions
|
@ -1,33 +0,0 @@
|
|||
|
||||
module.exports.BUILT_IN_BUTTON_TYPES = Object.freeze({
|
||||
NEXT_PAGE: "next",
|
||||
PREVIOUS_PAGE: "previous"
|
||||
})
|
||||
|
||||
module.exports.DEFAULT_BUTTON_ICON_MAPPINGS = Object.freeze({
|
||||
[this.BUILT_IN_BUTTON_TYPES.NEXT_PAGE]: "button_chevron_right",
|
||||
[this.BUILT_IN_BUTTON_TYPES.PREVIOUS_PAGE]: "button_chevron_left"
|
||||
});
|
||||
|
||||
module.exports.STACK_CACHE_KEYS = Object.freeze({
|
||||
RESULT_CARDS: 0
|
||||
})
|
||||
|
||||
/**
|
||||
* Callback Types for a Dynamic Card Stack
|
||||
* Component resolve.
|
||||
*
|
||||
* - `SUBSTACK` - Creates a "submenu" with a brand new cardstack
|
||||
* - `REPLACE_PARENT` - Replaces the parent card in the root stack
|
||||
* - This callback type will also unselect the button
|
||||
* - `REPLACE_ROOT_STACK` - Replaces the root stack
|
||||
* - This callback type will also unselect the button
|
||||
*/
|
||||
module.exports.RESOLVE_CALLBACK_TYPES = Object.freeze({
|
||||
SUBSTACK: 0,
|
||||
REPLACE_PARENT_CARD: 1,
|
||||
REPLACE_STACK: 2,
|
||||
0: "SUBSTACK",
|
||||
1: "REPLACE_PARENT_CARD",
|
||||
2: "REPLACE_STACK",
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue