Container element of the across clues list
Across list element
Board
Registry of the clues. The key is the number of the clue
Definition to use. Passed as CrosswordOptions.definition
Disabled state
Container element of the down clues list
Down list element
Root element of the plugin
Used to prevent duplicated events when interacting with the list or the cells
Current options
Clue registry active
Cell registry active
Rows registry
Activate a clue. Store the activated clue in registryActive
Registry of the clue to activate
Register the events
Add info to the cell element like classes and attributes
Add info to the list element like classes and attributes
Check if
Initialize the component
JQuery ui widget constructor
Create the across clues list
Create the main element for the board By default is a table If the option "createBoard" is provided, will be used instead
Create a cell for the board By default is a td If the option "createCell" is provided, will be used instead
The definition object for the cell
Create a cell field for the board By default is a input If the option "createCellField" is provided, will be used instead
The definition object for the cell
Create the registry of the clue
Create a list of clues If the option "createCluesList" is provided, will be used instead
Create the container of a list of clues. If the option "createCluesListContainer" is provided, will be used instead
Create a clue list item. If the option "createCluesListContainer" is provided, will be used instead
Definition
Create the clues lists
Instantiate the definition
Create the down clues list.
Create a row of the board. By default is a tr If the option "createRow" is provided, will be used instead. The row is optional, if the function returns a null the cells will be attached to the board directly. Useful for use css grid
The index of the row
Get the cell registry related to an other registry
Registry related
If true, will search in vertical. Otherwise in horizontal
If true, will search by increment. Otherwise by decrease
JQuery ui function to get the default options
Get the definition for a clue based on the position of the letter. If the cell has across and down definitions, returns the definition for which the cell is closest to the first letter If the cell has only one definition, returns that definition
Get the next or prev clue related to a registry
If true, will look for the next clue, otherwise will look for the prev clue
Invoked when a field lose focus. Clear the active clue and cell
Invoked when the field changes. Moves the focus to the next cell
Invoked when a field receives focus. Goes to the cell
Invoked when a key is pressed
Invoked when a item of the clues list is clicked. Enables the clue and navigates to the first cell
Store and check the answer in a cell
Update the css classes for the clueRegistry depending if is correct or incorrect
Check if the game has been solved
Check if a clue is correct
Clear the active state
Destroy the component
Disable the widget
Enable the widget
Move the cursor to a cell. Also activates the related clue. If the cell has one clue, the focus will be to the active clue or to the clue related to the cell If the cell has two clues, the focus will be to the clue for which the cell is the first letter. If none of the cells are the first letter, the focus will go to the current clue, or, if there isn't a current clue, the focus will go to the clue for which the cell is closest to the first letter
Could be a number or a CrosswordCellRegistry.
The activated cell regitry
Moves the focus to the cell above the current one
Moves the focus to the cell below the current one
Moves the focus to the cell at the left side of the current one
Moves the focus to the cell at the right side of the current one
Go to the next word from the current one
Go to the previous word from the current one
Resolve the game
Generated using TypeDoc
Crossword game