-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add use-cases for buttons component (#4686)
- Loading branch information
1 parent
5f535c6
commit 07aced2
Showing
9 changed files
with
179 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
2.1: Buttons Basic example | ||
========================== | ||
**Primary Actor**: User | ||
|
||
**Scope**: Ngx-bootstrap DEMO / BS version 3&4 | ||
|
||
**Goal**: Show user basic buttons example | ||
|
||
Main success scenario: | ||
---------------------- | ||
1. User opens Buttons demo page | ||
2. User clicks on Basic sub-menu | ||
3. User see 1 button with text: "Single Button" | ||
4. Button should be clickable | ||
|
||
Variations: | ||
----------- | ||
2*. User scrolls to Basic sub-menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
2.2: Buttons Checkbox example | ||
============================= | ||
**Primary Actor**: User | ||
|
||
**Scope**: Ngx-bootstrap DEMO / BS version 3&4 | ||
|
||
**Goal**: Show user checkbox-like buttons example | ||
|
||
Main success scenario: | ||
---------------------- | ||
1. User opens Buttons demo page | ||
2. User clicks on Checkbox sub-menu | ||
3. User see button-group, contain of 3 parts(labels) | ||
4. By default, 1st button is inactive, 2d - active and 3d - inactive | ||
5. User able to click on each button | ||
6. When user clicks on the inactive button, it become active | ||
7. User can make all buttons inactive and can make all buttons active | ||
|
||
Variations: | ||
----------- | ||
2*. User scrolls to Checkbox sub-menu |
19 changes: 19 additions & 0 deletions
19
docs/spec/buttons/buttons.examples.custom-checkbox.use-case.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
2.3: Buttons Custom checkbox value example | ||
========================================== | ||
**Primary Actor**: User | ||
|
||
**Scope**: Ngx-bootstrap DEMO / BS version 3&4 | ||
|
||
**Goal**: Show user button example with custom checkbox value | ||
|
||
Main success scenario: | ||
---------------------- | ||
1. User opens Buttons demo page | ||
2. User clicks on Custom checkbox value sub-menu | ||
3. User see 1 clickable button with text: "Single Toggle" and "1" in the custom checkbox value field | ||
4. Button should be active by default | ||
5. When user clicks on it, button become inactive and custom checkbox value should be "0" | ||
|
||
Variations: | ||
----------- | ||
2*. User scrolls to Custom checkbox value sub-menu |
20 changes: 20 additions & 0 deletions
20
docs/spec/buttons/buttons.examples.disabled-buttons.use-case.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
2.8: Buttons Disabled example | ||
============================= | ||
**Primary Actor**: User | ||
|
||
**Scope**: Ngx-bootstrap DEMO / BS version 3&4 | ||
|
||
**Goal**: Show user disabled buttons example | ||
|
||
Main success scenario: | ||
---------------------- | ||
1. User opens Buttons demo page | ||
2. User clicks on Disabled Buttons sub-menu | ||
3. User see 2 buttons: "Button", "Enable/Disable" and able to click on each | ||
4. By default, "Button" is enabled | ||
5. When user clicks on "Enable/Disable", "Button" become disabled and unclickable | ||
6. When user clicks on "Enable/Disable" second time, "Button" become enabled and clickable | ||
|
||
Variations: | ||
----------- | ||
2*. User scrolls to Disabled Buttons sub-menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
2.5: Buttons Radio example | ||
========================== | ||
**Primary Actor**: User | ||
|
||
**Scope**: Ngx-bootstrap DEMO / BS version 3&4 | ||
|
||
**Goal**: Show user radio-buttons usage example with checked/unchecked states | ||
|
||
Main success scenario: | ||
---------------------- | ||
1. User opens Buttons demo page | ||
2. User clicks on Radio sub-menu | ||
3. User see 2 button-groups (primary and success), contain of 3 parts(labels) | ||
4. By default, in each group, 1st button is inactive, 2d - active and 3d - inactive | ||
5. User able to click on each button | ||
6. When user clicks on the inactive button, it become active and other buttons in this group become inactive | ||
7. Click on N(Left, Middle, Right) button in A group make all N buttons active in all groups | ||
|
||
Variations: | ||
----------- | ||
2*. User scrolls to Radio sub-menu |
22 changes: 22 additions & 0 deletions
22
docs/spec/buttons/buttons.examples.reactive-checkbox.use-case.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
2.4: Buttons Checkbox with Reactive Forms example | ||
================================================= | ||
**Primary Actor**: User | ||
|
||
**Scope**: Ngx-bootstrap DEMO / BS version 3&4 | ||
|
||
**Goal**: Show user checkbox-like buttons example with Reactive Forms | ||
|
||
Main success scenario: | ||
---------------------- | ||
1. User opens Buttons demo page | ||
2. User clicks on Checkbox with Reactive Forms sub-menu | ||
3. User see button-group, contain of 3 parts(labels) | ||
4. By default, 1st button is inactive, 2d - active and 3d - inactive | ||
5. User able to click on each button | ||
6. When user clicks on the inactive button, it become active | ||
7. User can make all buttons inactive and can make all buttons active | ||
8. Component src should be written with usage of FormBuilder and FormGroup | ||
|
||
Variations: | ||
----------- | ||
2*. User scrolls to Checkbox with Reactive Forms sub-menu |
21 changes: 21 additions & 0 deletions
21
docs/spec/buttons/buttons.examples.reactive-radio.use-case.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
2.7: Buttons Radio with Reactive Forms example | ||
============================================== | ||
**Primary Actor**: User | ||
|
||
**Scope**: Ngx-bootstrap DEMO / BS version 3&4 | ||
|
||
**Goal**: Show user example of radio buttons with ReactiveForms | ||
|
||
Main success scenario: | ||
---------------------- | ||
1. User opens Buttons demo page | ||
2. User clicks on Radio with Reactive Forms sub-menu | ||
3. User see button-group, which contain of 3 parts(labels) | ||
4. By default, 1st button is inactive, 2d - inactive and 3d - active | ||
5. User able to click on each button | ||
6. When user clicks on the inactive button, it become active and other buttons - inactive | ||
7. Component src should be written with usage of FormBuilder and FormGroup | ||
|
||
Variations: | ||
----------- | ||
2*. User scrolls to Radio with Reactive Forms sub-menu |
21 changes: 21 additions & 0 deletions
21
docs/spec/buttons/buttons.examples.uncheckable-radio.use-case.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
2.6: Buttons Uncheckable Radio example | ||
====================================== | ||
**Primary Actor**: User | ||
|
||
**Scope**: Ngx-bootstrap DEMO / BS version 3&4 | ||
|
||
**Goal**: Show user uncheckable radio buttons example | ||
|
||
Main success scenario: | ||
---------------------- | ||
1. User opens Buttons demo page | ||
2. User clicks on Uncheckable Radio sub-menu | ||
3. User see button-group, which contain of 3 parts(labels) | ||
4. By default, in each group, 1st button is inactive, 2d - active and 3d - inactive | ||
5. User able to click on each button | ||
6. When user clicks on the active button, it become inactive and other buttons stay inactive (and there is "Null" message in this demo block) | ||
7. When 1 button is active, other is inactive. | ||
|
||
Variations: | ||
----------- | ||
2*. User scrolls to Uncheckable Radio sub-menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters