Javascript Methods
Version 1.1 17.03.2021
Methods and naming conventions

Version 1.1 17.03.2021
Methods and naming conventions
| Elements | Description |
|---|---|
| newElem() | Create and return object |
| addElem() | Create and return main object |
| appendElem() | Create and return main object (alias to appendElem) |
| prependElem() | Create to beginning, return main object |
| Methods | Description |
|---|---|
| init | Executed when object is created. |
| load | Load data. |
| render | Render content. |
| refresh | Refresh content (does not load new values) |
| Function | Return | Description |
|---|---|---|
| .search(str) | bool | Return TRUE if String contains given str. (Case insensitive, check if str is string) |
| .contains(str) | bool | Return TRUE if String contains given str. (Same as search, but case sensitive) |
| .startsWith(str) | bool | Return TRUE if String starts with given str. |
| .endWith(str) | bool | Return TRUE if String ends with given str. |
| .toUpperCaseFirst() | bool | Change first letter to upper case. |
| .toLowerCaseFirst() | bool | Change first letter to lower case. |
| .repeat(x) | String | Repeat string x -times. |
| Function | Return | Description |
|---|---|---|
| .toUpperCaseFirst() | bool | Change first letter to upper case. |