Skip to content

Commit

Permalink
Add theme options sample. And Fix markdown title.
Browse files Browse the repository at this point in the history
  • Loading branch information
tohosaku committed Jun 29, 2020
1 parent 2d1ee64 commit 7b73d35
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
9 changes: 4 additions & 5 deletions README_ADDON.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,11 @@ window.JSONEditor.defaults.callbacks.cleave = {



#Themes
# Themes

Themes have own options for changing various aspects of the display.

##Bootstrap 4
## Bootstrap 4

| Option | Default | Description
| ------------- | ------ | -----
Expand All @@ -481,7 +481,7 @@ Themes have own options for changing various aspects of the display.
| `table_zebrastyle` | `false` | Add "zebra style" to array "table" rows
| `tooltip` | `bootstrap` | how to display tooltips (infoText). Can be `browser` for native `[title]`, `css` for simple CSS Styling, or `bootstrap` for TWBS/Popper.js handling

##Spectre
## Spectre

| Option | Default | Description
| ------------- | ------ | -----
Expand All @@ -493,7 +493,7 @@ Themes have own options for changing various aspects of the display.
| `table_border` | `false` | Add border to array "table" row and cells
| `table_zebrastyle` | `false` | Add "zebra style" to array "table" rows

##Tailwind
## Tailwind

| Option | Default | Description
| ------------- | ------ | -----
Expand All @@ -506,4 +506,3 @@ Themes have own options for changing various aspects of the display.
| `table_border` | `false` | Add border to array "table" row and cells
| `table_hdiv` | `false` | Add bottom-border to array "table" cells
| `table_zebrastyle` | `false` | Add "zebra style" to array "table" rows

6 changes: 5 additions & 1 deletion tests/codeceptjs/themes_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ Scenario('It should display button Labels: spectre | null', async (I) => {
I.waitForText('Delete All')
I.waitForText('Move down')
I.waitForText('Move up')
I.seeElement('.table-striped') // can see when theme options is enabled
I.seeElement('.je-table-border') // can see when theme options is enabled
I.dontSeeElement('.je-noindent') // can't see when theme options is enabled
})

/*
Expand Down Expand Up @@ -76,7 +79,8 @@ Scenario('It should display button Labels: jqueryui | null', async (I) => {
})
*/

/*Scenario('It should display button Labels: foundation6 | null', async (I) => {
/*
Scenario('It should display button Labels: foundation6 | null', async (I) => {
I.amOnPage('themes.html')
I.selectOption('theme', 'Foundation 6')
I.waitForText('Themes Test Page')
Expand Down
4 changes: 4 additions & 0 deletions tests/pages/themes.html
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,10 @@
remove_button_labels: true,
theme: theme,
iconlib: iconlib,
object_indent: true,
object_border: true,
table_zebrastyle: true,
table_border: true
});
}

Expand Down

0 comments on commit 7b73d35

Please sign in to comment.