Constructor
new TermStorage(terms, deck_name, is_active)
Initialization, by default TermStorage is acitve.
Parameters:
Name | Type | Description |
---|---|---|
terms |
||
deck_name |
string | The deckname, optional if is the parent deckname |
|
||
is_active |
boolean | If the deck is active or not; by default is false |
- Source:
Members
deck_titles
Returns list of deck title. e.g. [kotlin, java, javascript...]
- Source:
deck_titles_with_count
Returns dict of deck titles with the count of cards inside: deckname e.g.: { kotlin - 3: {count: 3, name: kotlin}, java - 5: {count: 5, name: java} javascript - 10: {count: 10, name: javascript} }
- Source:
jsonTerms
Appends all decks that are active + its current cards.
- Source:
Methods
addDeck(deck)
Parameters:
Name | Type | Description |
---|---|---|
deck |
TermStorage | the deck to append to the storage, by default is active usually |
- Source:
applyMasks(masks)
Parameters:
Name | Type | Description |
---|---|---|
masks |
- Source:
changeIsActiveSettingsFromDecks(is_active_settings)
Parameters:
Name | Type | Description |
---|---|---|
is_active_settings |
- Source:
explain()
Simply explains the insides as well as the name of the deck
- Source:
listTerms(get)
Parameters:
Name | Type | Description |
---|---|---|
get |
get_only | only certain decks (with x categories.) |
- Source:
Returns:
push(term)
Follows the design of array.push, easier to memorize
Parameters:
Name | Type | Description |
---|---|---|
term |
Term | Pushes this term into the terms of the storage |
- Source: