You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/options/introduction.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ Functions related to options are divided into four main types:
31
31
32
32
### Directly Modifying the Attribute Set of an Option
33
33
-`noDefault <option>` - removes the `default` attribute from the option. It is rarely used since options without a default value are uncommon.
34
+
-`noNullDefault <option>` - removes the `default` attribute from the option if its value is `null`. Used for default value logic where its absence is allowed.
34
35
-`readOnly <option>` - adds the `readOnly` attribute with the value `true`.
35
36
-`apply <option> <apply>` - adds the `apply` attribute with the value passed to this function.
36
37
-`description <option> <description>` - adds the `description` attribute with the given value.
@@ -46,14 +47,15 @@ The list of current options can be found in the source code: [github:yunfachi/de
Copy file name to clipboardExpand all lines: docs/src/ru/options/introduction.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ delib.listOfOption delib.str []
31
31
32
32
### Прямое изменение attribute set опции
33
33
-`noDefault <option>` - удаляет атрибут `default` из опции. Используется редко, так как редко бывают опции без значения по умолчанию.
34
+
-`noNullDefault <option>` - удаляет атрибут `default` из опции, если его значение равно `null`. Используется для логики значений по умолчанию, где допускается их отсутствие.
34
35
-`readOnly <option>` - добавляет атрибут `readOnly` со значением `true`.
35
36
-`apply <option> <apply>` - добавляет атрибут `apply` с переданным значением.
36
37
-`description <option> <description>` - добавляет атрибут `description` с переданным значением.
0 commit comments