Skip to content

Commit

Permalink
Merge pull request #125 from richard-imaoka/doc-62-groups-container-i…
Browse files Browse the repository at this point in the history
…maoka

Add description about groups with div and note.
  • Loading branch information
pvlugter authored Jun 8, 2017
2 parents 4d75865 + 63cceeb commit 6ea3ec1
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion docs/src/main/paradox/features/groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,36 @@ Text describing the @java[Java variant]@scala[Scala variant containing ***markdo

Text describing the @java[Java variant]@scala[Scala variant containing ***markdown*** and @ref:[Linking](linking.md)].

### Directives

You can also use groups with directives such as `@@@ div` [(link)](http://developer.lightbend.com/docs/paradox/latest/features/css-friendliness.html#div)
and `@@@ note` [(link)](http://developer.lightbend.com/docs/paradox/latest/features/css-friendliness.html#div) as follows:

```
@@@ div { .group-scala }
This only shows up when the `group` is "scala"
@@@
@@@ note { .group-java }
This only shows up when the `group` is "java"
@@@
```

@@@ div { .group-scala }

This only shows up when the `group` is "scala"

@@@

@@@ note { .group-java }

This only shows up when the `group` is "java"

@@@

## Behavior

Expand All @@ -99,4 +129,4 @@ You can register an event listener that will be called whenever a group is switc
window.groupChanged(function(group, supergroup, catalog) {
// your code here
});
```
```

0 comments on commit 6ea3ec1

Please sign in to comment.