Skip to content

Commit ad09353

Browse files
committed
Improve documentation on ClientBundle and Styles
1 parent 9b184a3 commit ad09353

File tree

4 files changed

+17
-135
lines changed

4 files changed

+17
-135
lines changed

docs-source/book/essential/class-and-style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ That's why it's also possible to use the `map` syntax inside `array` syntax:
127127

128128
### GWT Styles
129129

130-
You should also check how to use [GWT GSS Styles](../gwt-integration/styles.md) in your app.
130+
You should also check how to use [GWT GSS Styles](../gwt-integration/client-bundles-and-styles.md#styles) in your app.
131131

132132
### With Components
133133

docs-source/book/gwt-integration/client-bundles-and-styles.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ We can then simply access our bundle instance from the template:
5050

5151
You could also directly expose your ImageResource to the template, it's really up to you.
5252

53+
<p class="info-panel">
54+
You can use <a href="../composition/extending-components.html">Component inheritance</a> to declare a base component in your app and avoid
55+
having to expose your resources/styles manually in every components.
56+
</p>
57+
5358
## Using `CssResources` in Vue GWT {#styles}
5459

5560
Vue GWT is compatible with GSS styles.
@@ -117,7 +122,7 @@ We can then simply use Vue `v-bind` directive to bind our style.
117122
</div>
118123
```
119124

120-
## Adding More Than One CSS Class
125+
#### Adding More Than One CSS Class
121126

122127
You can add more than one CSS Class to your Components by using the [`array` builder](../js-interop/README.md#array):
123128

@@ -127,7 +132,7 @@ You can add more than one CSS Class to your Components by using the [`array` bui
127132
</div>
128133
```
129134

130-
## Conditional Styling
135+
#### Conditional Styling
131136

132137
You can apply a Style conditionally.
133138
First we add a boolean in our `MelisandreComponent`:
@@ -152,7 +157,7 @@ Then we simply use a ternary expression (be careful with the quotes):
152157
</div>
153158
```
154159

155-
## Conditional Styling With Several CSS Class
160+
#### Conditional Styling With Several CSS Class
156161

157162
You can combine both the `array` and the ternary syntax:
158163

@@ -162,7 +167,7 @@ You can combine both the `array` and the ternary syntax:
162167
</div>
163168
```
164169

165-
## Here is our finished `MelisandreComponent`
170+
#### Here is our finished `MelisandreComponent`
166171

167172
{% raw %}
168173
<div class="example-container" data-name="melisandreComponent">
@@ -174,4 +179,9 @@ You can try toggling the red color on the two bottom sentences by typing in your
174179

175180
```
176181
melisandreComponent.isRed = false;
177-
```
182+
```
183+
184+
<p class="info-panel">
185+
You can use <a href="../composition/extending-components.html">Component inheritance</a> to declare a base component in your app and avoid
186+
having to expose your resources/styles manually in every components.
187+
</p>

docs-source/book/gwt-integration/styles.md

Lines changed: 0 additions & 125 deletions
This file was deleted.

docs-source/book/introduction/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,4 @@ public class RootGwtApp implements EntryPoint {
513513
}
514514
```
515515

516-
To understand more in depth how the Observation works, and avoid pitfalls it's recommended to read information on **[the Vue Instance](../essential/the-vue-instance.md)**.
517-
518-
Your shiny new Vue GWT Components will play nicely with GWT.
519-
**[Checkout integration with GWT](../gwt-integration/styles.md)**.
516+
To understand more in depth how the Observation works, and avoid pitfalls keep reading **[the Vue Instance](../essential/the-vue-instance.md)**.

0 commit comments

Comments
 (0)