-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(ui5-textarea): improve documentation #7913
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,11 +80,10 @@ type ExceededText = { | |
* <code>import "@ui5/webcomponents/dist/TextArea";</code> | ||
* | ||
* @constructor | ||
* @author SAP SE | ||
* @alias sap.ui.webc.main.TextArea | ||
* @extends sap.ui.webc.base.UI5Element | ||
* @tagname ui5-textarea | ||
* @extends UI5Element | ||
* @implements {IFormElement} | ||
* @public | ||
* @csspart textarea - Used to style the native textarea | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove CSS Shadow parts section since the textarea css part is declared here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
*/ | ||
@customElement({ | ||
tag: "ui5-textarea", | ||
|
@@ -99,7 +98,6 @@ type ExceededText = { | |
/** | ||
* Fired when the text has changed and the focus leaves the component. | ||
* | ||
* @event sap.ui.webc.main.TextArea#change | ||
* @public | ||
*/ | ||
@event("change") | ||
|
@@ -108,7 +106,6 @@ type ExceededText = { | |
* Fired when the value of the component changes at each keystroke or when | ||
* something is pasted. | ||
* | ||
* @event sap.ui.webc.main.TextArea#input | ||
* @since 1.0.0-rc.5 | ||
* @public | ||
*/ | ||
|
@@ -118,11 +115,9 @@ class TextArea extends UI5Element implements IFormElement { | |
/** | ||
* Defines the value of the component. | ||
* | ||
* @type {string} | ||
* @name sap.ui.webc.main.TextArea.prototype.value | ||
* @formEvents change input | ||
* @formProperty | ||
* @defaultvalue "" | ||
* @default "" | ||
* @public | ||
*/ | ||
@property() | ||
|
@@ -132,9 +127,7 @@ class TextArea extends UI5Element implements IFormElement { | |
* <br><br> | ||
* <b>Note:</b> A disabled component is completely noninteractive. | ||
* | ||
* @type {boolean} | ||
* @name sap.ui.webc.main.TextArea.prototype.disabled | ||
* @defaultvalue false | ||
* @default false | ||
* @public | ||
*/ | ||
@property({ type: Boolean }) | ||
|
@@ -145,19 +138,15 @@ class TextArea extends UI5Element implements IFormElement { | |
* <b>Note:</b> A read-only component is not editable, | ||
* but still provides visual feedback upon user interaction. | ||
* | ||
* @type {boolean} | ||
* @name sap.ui.webc.main.TextArea.prototype.readonly | ||
* @defaultvalue false | ||
* @default false | ||
* @public | ||
*/ | ||
@property({ type: Boolean }) | ||
readonly!: boolean; | ||
/** | ||
* Defines whether the component is required. | ||
* | ||
* @type {boolean} | ||
* @name sap.ui.webc.main.TextArea.prototype.required | ||
* @defaultvalue false | ||
* @default false | ||
* @public | ||
* @since 1.0.0-rc.3 | ||
*/ | ||
|
@@ -167,9 +156,7 @@ class TextArea extends UI5Element implements IFormElement { | |
/** | ||
* Defines a short hint intended to aid the user with data entry when the component has no value. | ||
* | ||
* @type {string} | ||
* @name sap.ui.webc.main.TextArea.prototype.placeholder | ||
* @defaultvalue "" | ||
* @default "" | ||
* @public | ||
*/ | ||
@property() | ||
|
@@ -182,9 +169,8 @@ class TextArea extends UI5Element implements IFormElement { | |
* <b>Note:</b> If <code>maxlength</code> property is set, | ||
* the component turns into "Warning" state once the characters exceeds the limit. | ||
* In this case, only the "Error" state is considered and can be applied. | ||
* @type {sap.ui.webc.base.types.ValueState} | ||
* @name sap.ui.webc.main.TextArea.prototype.valueState | ||
* @defaultvalue "None" | ||
* | ||
* @default "None" | ||
* @since 1.0.0-rc.7 | ||
* @public | ||
*/ | ||
|
@@ -201,9 +187,7 @@ class TextArea extends UI5Element implements IFormElement { | |
* <li>The CSS <code>height</code> property wins over the <code>rows</code> property, if both are set.</li> | ||
* </ul> | ||
* | ||
* @type {sap.ui.webc.base.types.Integer} | ||
* @name sap.ui.webc.main.TextArea.prototype.rows | ||
* @defaultvalue 0 | ||
* @default 0 | ||
* @public | ||
*/ | ||
@property({ validator: Integer, defaultValue: 0 }) | ||
|
@@ -212,9 +196,7 @@ class TextArea extends UI5Element implements IFormElement { | |
/** | ||
* Defines the maximum number of characters that the <code>value</code> can have. | ||
* | ||
* @type {sap.ui.webc.base.types.Integer} | ||
* @name sap.ui.webc.main.TextArea.prototype.maxlength | ||
* @defaultValue null | ||
* @default null | ||
* @public | ||
*/ | ||
@property({ validator: Integer, defaultValue: null }) | ||
|
@@ -229,10 +211,7 @@ class TextArea extends UI5Element implements IFormElement { | |
* If set to <code>true</code> the characters exceeding the <code>maxlength</code> value are selected on | ||
* paste and the counter below the component displays their number. | ||
* | ||
* @type {boolean} | ||
* @name sap.ui.webc.main.TextArea.prototype.showExceededText | ||
|
||
* @defaultvalue false | ||
* @default false | ||
* @public | ||
*/ | ||
@property({ type: Boolean }) | ||
|
@@ -241,9 +220,8 @@ class TextArea extends UI5Element implements IFormElement { | |
/** | ||
* Enables the component to automatically grow and shrink dynamically with its content. | ||
* <br><br> | ||
* @type {boolean} | ||
* @name sap.ui.webc.main.TextArea.prototype.growing | ||
* @defaultvalue false | ||
* | ||
* @default false | ||
* @public | ||
*/ | ||
@property({ type: Boolean }) | ||
|
@@ -252,9 +230,7 @@ class TextArea extends UI5Element implements IFormElement { | |
/** | ||
* Defines the maximum number of lines that the component can grow. | ||
* | ||
* @type {sap.ui.webc.base.types.Integer} | ||
* @name sap.ui.webc.main.TextArea.prototype.growingMaxLines | ||
* @defaultvalue 0 | ||
* @default 0 | ||
* @public | ||
*/ | ||
@property({ validator: Integer, defaultValue: 0 }) | ||
|
@@ -272,9 +248,7 @@ class TextArea extends UI5Element implements IFormElement { | |
* will be created inside the component so that it can be submitted as | ||
* part of an HTML form. Do not use this property unless you need to submit a form. | ||
* | ||
* @type {string} | ||
* @name sap.ui.webc.main.TextArea.prototype.name | ||
* @defaultvalue "" | ||
* @default "" | ||
* @public | ||
*/ | ||
@property() | ||
|
@@ -283,8 +257,7 @@ class TextArea extends UI5Element implements IFormElement { | |
/** | ||
* Defines the accessible ARIA name of the component. | ||
* | ||
* @type {string} | ||
* @name sap.ui.webc.main.TextArea.prototype.accessibleName | ||
* @default "" | ||
* @public | ||
* @since 1.0.0-rc.15 | ||
*/ | ||
|
@@ -294,9 +267,7 @@ class TextArea extends UI5Element implements IFormElement { | |
/** | ||
* Receives id(or many ids) of the elements that label the textarea. | ||
* | ||
* @type {string} | ||
* @name sap.ui.webc.main.TextArea.prototype.accessibleNameRef | ||
* @defaultvalue "" | ||
* @default "" | ||
* @public | ||
* @since 1.0.0-rc.15 | ||
*/ | ||
|
@@ -342,20 +313,16 @@ class TextArea extends UI5Element implements IFormElement { | |
* <br><br> | ||
* <b>Note:</b> The <code>valueStateMessage</code> would be displayed if the component has | ||
* <code>valueState</code> of type <code>Information</code>, <code>Warning</code> or <code>Error</code>. | ||
* @type {HTMLElement[]} | ||
* @name sap.ui.webc.main.TextArea.prototype.valueStateMessage | ||
* | ||
* @since 1.0.0-rc.7 | ||
* @slot | ||
* @public | ||
*/ | ||
@slot() | ||
valueStateMessage!: Array<HTMLElement>; | ||
/** | ||
* The slot is used to render native <code>input</code> HTML element within Light DOM to enable form submit, | ||
* when <code>name</code> property is set. | ||
* @type {HTMLElement[]} | ||
* @name sa.ui.webc.main.TextArea.prototype.formSupport | ||
* @slot | ||
* | ||
* @private | ||
*/ | ||
@slot() | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With implements tag we only describe public interfaces like IBar, IAvatar and etc.. so this one is redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done