Skip to content

Commit 9ea5c92

Browse files
authored
Merge pull request #364 from DevExpress/Readme_rework
Small readme rework
2 parents 33c3167 + 5e8872f commit 9ea5c92

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ This project allows you to use [DevExtreme Widgets](http://js.devexpress.com/Dem
1010
* [Starting a new application](#create-application)
1111
* [Running the local examples](#running-examples)
1212
* [Usage samples](#usage-samples)
13-
* [Static option value](#static-option)
13+
* [Static string option value](#static-option)
14+
* [Static non-string option value](#static-non-string-option)
1415
* [Event handling](#event-handling)
1516
* [One-way option binding](#one-way-binding)
1617
* [Two-way option binding](#two-way-binding)
@@ -133,19 +134,29 @@ Navigate to [http://127.0.0.1:8875/examples/](http://127.0.0.1:8875/examples/) i
133134

134135
## <a name="usage-samples"></a>Usage Samples ##
135136

136-
### <a name="static-option"></a>Static Option Value ###
137+
### <a name="static-option"></a>Static String Option Value ###
137138

138139
To specify a string widget's option statically
139-
(the [text](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxButton/Configuration/?version=15_2#text)
140+
(the [text](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxButton/Configuration/#text)
140141
option of dxButton):
141142

142143
```html
143144
<dx-button text="Simple button"></dx-button>
144145
```
145146

147+
### <a name="static-non-string-option"></a>Static Non-string Option Value ###
148+
149+
To specify a non-string widget's option statically
150+
(the [disabled](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxButton/Configuration/#disabled)
151+
option of dxButton):
152+
153+
```html
154+
<dx-button [disabled]="false"></dx-button>
155+
```
156+
146157
### <a name="event-handling"></a>Event Handling ###
147158

148-
To bind the dxButton’s [click](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxButton/Events/?version=15_2#click) event:
159+
To bind the dxButton’s [click](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxButton/Events/#click) event:
149160

150161
```html
151162
<dx-button (onClick)="handler()"></dx-button>
@@ -154,7 +165,7 @@ To bind the dxButton’s [click](http://js.devexpress.com/Documentation/ApiRefer
154165
### <a name="one-way-binding"></a>One-way Option Binding ###
155166

156167
If we want changes to the value of ‘bindingProperty’ of the host component to propagate to the
157-
[value](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxTextBox/Configuration/?version=15_2#value) of the dxTextBox widget,
168+
[value](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxTextBox/Configuration/#value) of the dxTextBox widget,
158169
a one-way binding approach is used:
159170

160171
```html
@@ -173,8 +184,8 @@ or vice versa from the widget to the bindingProperty:
173184
### <a name="custom-templates"></a>Custom Templates ###
174185

175186
In case you want to customize the rendering of a DevExtreme widget, we support custom templates. For instance, we can specify
176-
the [itemTemplate](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxList/Configuration/?version=15_2#itemTemplate)
177-
and [groupTemplate](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxList/Configuration/?version=15_2#groupTemplate)
187+
the [itemTemplate](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxList/Configuration/#itemTemplate)
188+
and [groupTemplate](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxList/Configuration/#groupTemplate)
178189
of the dxList widget as follows:
179190

180191
```html

0 commit comments

Comments
 (0)