Skip to content

Commit

Permalink
[fix] links in work with data article (chart-combobox)
Browse files Browse the repository at this point in the history
  • Loading branch information
vashkinazi committed May 7, 2021
1 parent 02ba798 commit 5e9d2c6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 44 deletions.
2 changes: 1 addition & 1 deletion docs/chart/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ chart.eachSeries(function(seria){
Adding items into Chart
-----------------------

The API of [Data Collection](data_collection/api/refs/datacollection.md) allows you to perform operations with Chart data items.
The API of [Data Collection](data_collection/index.md) allows you to perform operations with Chart data items.
For example, you can add more items (points) into your Chart using the [](data_collection/api/datacollection_add_method.md) method, like this:

~~~js
Expand Down
4 changes: 2 additions & 2 deletions docs/combobox/api/api_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ title: Combobox API overview
## Methods

| Name | Description |
| ---------------------------------------------- | ----------------------------------------------------- |
|------------------------------------------------|-------------------------------------------------------|
| [](combobox/api/combobox_clear_method.md) | @getshort(combobox/api/combobox_clear_method.md) |
| [](combobox/api/combobox_disable_method.md) | @getshort(combobox/api/combobox_disable_method.md) |
| [](combobox/api/combobox_enable_method.md) | @getshort(combobox/api/combobox_enable_method.md) |
| [](combobox/api/combobox_focus_method.md) | @getshort(combobox/api/combobox_focus_method.md) |
| [](combobox/api/combobox_getvalue_method.md) | @getshort(combobox/api/combobox_getvalue_method.md) |
| [](combobox/api/combobox_isdisabled_method.md) | @getshort(combobox/api/combobox_isdisabled_method.md) |
| [](combobox/api/combobox_paint_method.md) | @getshort(combobox/api/combobox_paint_method.md) |
| [](combobox/api/combobox_setstate_method.md) | @getshort(combobox/api/combobox_setstate_method.md) |
| [](combobox/api/combobox_setvalue_method.md) | @getshort(combobox/api/combobox_setvalue_method.md) |

:::info important
Expand Down
30 changes: 0 additions & 30 deletions docs/combobox/api/combobox_setstate_method.md

This file was deleted.

20 changes: 10 additions & 10 deletions docs/combobox/work_with_combo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: Work with ComboBox
Setting/getting value(s)
---------------------

In order to select options in ComboBox, use the [setValue()](combo/api/combobox_setvalue_method.md) method. It takes one parameter:
In order to select options in ComboBox, use the [setValue()](combobox/api/combobox_setvalue_method.md) method. It takes one parameter:

- **ids** - (*string|number|array*) the ids of items from data collection that should be selected in ComboBox

Expand All @@ -23,7 +23,7 @@ combo.setValue([combo.data.getId(1), combo.data.getId(3)]);

**Related sample**: [Combobox. Set Value](https://snippet.dhtmlx.com/xl1p7zcx)

To get the list of selected options, apply the [getValue()](combo/api/combobox_getvalue_method.md) method. It returns ids of selected options either as string(s) (by default) or as an array of strings.
To get the list of selected options, apply the [getValue()](combobox/api/combobox_getvalue_method.md) method. It returns ids of selected options either as string(s) (by default) or as an array of strings.
In the latter case you need to pass the following parameter:

- **asArray** - (*boolean*) true, to return ids as an array of strings
Expand All @@ -46,7 +46,7 @@ var array_ids = combo.getValue(true);
Disabling/enabling ComboBox
-----------------

To disable/enable ComboBox, make use of the [disable()](combo/api/combobox_disable_method.md)/[enable()](combo/api/combobox_enable_method.md) methods:
To disable/enable ComboBox, make use of the [disable()](combobox/api/combobox_disable_method.md)/[enable()](combobox/api/combobox_enable_method.md) methods:

~~~js
// disabling a combo box
Expand All @@ -60,7 +60,7 @@ combo.enable();
Checking if a combobox is disabled
--------------------------------

To check if a combobox is disabled, call the [isDisabled()](combo/api/combobox_isdisabled_method.md) method:
To check if a combobox is disabled, call the [isDisabled()](combobox/api/combobox_isdisabled_method.md) method:

~~~js
combo.isDisabled(); // -> true/false
Expand All @@ -71,7 +71,7 @@ combo.isDisabled(); // -> true/false
Repainting ComboBox
----------------

You can repaint ComboBox on a page, e.g. after changing its configuration, using the [paint()](combo/api/combobox_paint_method.md) method:
You can repaint ComboBox on a page, e.g. after changing its configuration, using the [paint()](combobox/api/combobox_paint_method.md) method:

~~~js
// disabling ComboBox via the configuration object
Expand All @@ -84,7 +84,7 @@ combo.paint();
Clearing input
---------------

It is possible to clear the ComboBox input from the selected value(s) with the help of the [clear()](combo/api/combobox_clear_method.md) method:
It is possible to clear the ComboBox input from the selected value(s) with the help of the [clear()](combobox/api/combobox_clear_method.md) method:

~~~js
combo.clear();
Expand All @@ -95,7 +95,7 @@ combo.clear();
Setting focus
--------------

When needed, you can set focus in the ComboBox input without opening the list of options. Use the [focus()](combo/api/combobox_focus_method.md) method for this purpose:
When needed, you can set focus in the ComboBox input without opening the list of options. Use the [focus()](combobox/api/combobox_focus_method.md) method for this purpose:

~~~js
combo.focus();
Expand Down Expand Up @@ -206,11 +206,11 @@ combo.popup.events.on("AfterHide", function(e){
Using Data Collection API
------------------------

You can manipulate ComboBox options with the help of the [Data collection API](data_collection/api/refs/datacollection.md).
You can manipulate ComboBox options with the help of the [Data collection API](data_collection/index.md).

### Adding options into ComboBox

It is possible to add more options into the initialized ComboBox on the fly. Use the **add()** method of [Data Collection](data_collection/api/refs/datacollection.md). It takes two parameters:
It is possible to add more options into the initialized ComboBox on the fly. Use the **add()** method of [Data Collection](data_collection/index.md). It takes two parameters:

<table class="webixdoc_links">
<tbody>
Expand Down Expand Up @@ -270,6 +270,6 @@ combo.data.remove("option_id");

<br/>

{{note Check the full list of [Data collection API](data_collection/api/refs/datacollection.md)}}
{{note Check the full list of [Data collection API](data_collection/index.md)}}


2 changes: 1 addition & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ module.exports = {
"combobox/api/combobox_destructor_method",
"combobox/api/combobox_disable_method",
"combobox/api/combobox_enable_method",
"combobox/api/combobox_focus_method",
"combobox/api/combobox_getvalue_method",
"combobox/api/combobox_isdisabled_method",
"combobox/api/combobox_paint_method",
"combobox/api/combobox_setstate_method",
"combobox/api/combobox_setvalue_method",
],
},
Expand Down

0 comments on commit 5e9d2c6

Please sign in to comment.