MCPcopy Create free account
hub / github.com/angular/components / _setNameInput

Method _setNameInput

src/cdk/table/cell.ts:163–171  ·  view source on GitHub ↗

* This has been extracted to a util because of TS 4 and VE. * View Engine doesn't support property rename inheritance. * TS 4.0 doesn't allow properties to override accessors or vice-versa. * @docs-private

(value: string)

Source from the content-addressed store, hash-verified

161 * @docs-private
162 */
163 protected _setNameInput(value: string) {
164 // If the directive is set without a name (updated programmatically), then this setter will
165 // trigger with an empty string and should not overwrite the programmatically set value.
166 if (value) {
167 this._name = value;
168 this.cssClassFriendlyName = value.replace(/[^a-z0-9_-]/gi, '-');
169 this._updateColumnCssClassName();
170 }
171 }
172}
173
174/** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */

Callers 2

nameMethod · 0.95
nameMethod · 0.80

Calls 1

Tested by

no test coverage detected