Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-27572: Markdown specs for the selection buttons. #29

Merged
merged 1 commit into from Jul 25, 2017

Conversation

StephaneDiot
Copy link
Contributor

@StephaneDiot StephaneDiot commented Jul 11, 2017

JIRA: https://jira.ez.no/browse/EZP-27572

Suggested markdown for the selection buttons

@StephaneDiot StephaneDiot requested a review from dpobel July 11, 2017 09:28
@StephaneDiot StephaneDiot force-pushed the EZP-27572_Specs_Selection_Buttons branch from 6af4559 to b20d6f5 Compare July 11, 2017 15:25
```

*Constraints:*
input[type='checkbox']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?



# Markup

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a short sentence saying the behavior is implemented in a custom element ez-selection-activate-element


# Markup

* Here is a simple markup example of a selection button that can be enabled with one or more element and that can be enabled by every checkbox of <ez-selection-activate-element> :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of a list, add sub title, like:

## Enable a button based on a checkboxes

...

## Enable a button only if one element is selected

...

## Enable a button based on a subset of checkboxes

...


* Specification for https://jira.ez.no/browse/EZP-27572

Goal here is to provide activable elements (like buttons) that are enabled and can triggers actions only if some elements of a list are selected.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please wrap line to something like 100


# Markup

## Enable a button based on a checkboxes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be: ### Enable a button based on a checkbox


This behavior is implemented by the `ez-selection-activate-element` custom element.

# Markup
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be ## Markup

@@ -0,0 +1,61 @@
## Provides the suggested markup for the selection buttons
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Enable button(s) based on a selection

</ez-selection-activate-element>
```

## Enable a button only if one element is selected
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

### Enable a button only if one element is selected

```


## Enable a button based on a subset of checkboxes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

###

</ez-selection-activate-element>
```

*Constraints:*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

### Contraints

*Constraints:*

* The activable element must have the `ez-js-activable-element` class.
* If the activable element should be enabled only by specific checkboxes or radio button, those must have a class that matches <ez-selection-activate-element>'s `selection-selector`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The custom element should be between backticks

Copy link
Contributor

@dpobel dpobel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

besides heading level +1

activable element should have the `ez-js-activable-element-single-selection` in addition to
`ez-js-activable-element` class.

# How it works
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

##

@dpobel dpobel force-pushed the EZP-27572_Specs_Selection_Buttons branch from a823233 to 9678359 Compare July 25, 2017 13:47
@dpobel dpobel merged commit 3e4b9b0 into master Jul 25, 2017
@dpobel dpobel deleted the EZP-27572_Specs_Selection_Buttons branch July 25, 2017 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants