src/utility/styler/stylable.interface.ts
The export interface Stylable
is defining an interface in TypeScript called Stylable
. This
interface has three members:
Properties |
Methods |
getStyle |
getStyle()
|
Defined in src/utility/styler/stylable.interface.ts:36
|
The
Returns :
null | Style
|
setStyle | |||||||||
setStyle(style: null | Style, force?: boolean)
|
|||||||||
Defined in src/utility/styler/stylable.interface.ts:30
|
|||||||||
Parameters :
Returns :
void
|
styleObs |
styleObs:
|
Type : Observable<null | Style>
|
The line |
import { Observable } from 'rxjs';
import { Style } from './style';
/** The `export interface Stylable` is defining an interface in TypeScript called `Stylable`. This
interface has three members: */
export interface Stylable {
/** The line `readonly styleObs: Observable<null | Style>;` is declaring a property called `styleObs` of
type `Observable<null | Style>`. */
readonly styleObs: Observable<null | Style>;
/* The `setStyle(style: null | Style, force?: boolean): void;` method in the `Stylable` interface is
a function that allows setting the style of an object that implements the `Stylable` interface. It
takes two parameters: */
setStyle(style: null | Style, force?: boolean): void;
/** The `getStyle()` method is a function that does not take any parameters and returns a value of type
`null | Style`. This method is used to retrieve the style of an object implementing the `Stylable`
interface. The return value can be either `null` if no style has been set, or an instance of the
`Style` class representing the current style of the object. */
getStyle(): null | Style;
}