mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat: System css classes for modals (#8155)
* feat: update modal views CSS classes * chore: fix failing test
This commit is contained in:
committed by
GitHub
parent
2bb7ad9d01
commit
7b78f3b0c6
44
nativescript-core/css/system-classes.d.ts
vendored
44
nativescript-core/css/system-classes.d.ts
vendored
@@ -1,30 +1,66 @@
|
||||
/**
|
||||
* @module "system-classes"
|
||||
* This is an internal module.
|
||||
*/ /** */
|
||||
|
||||
/**
|
||||
* String value "ns-" used for CSS system class prefix.
|
||||
*/
|
||||
* String value "ns-" used for CSS system class prefix.
|
||||
*/
|
||||
export const CLASS_PREFIX: string;
|
||||
|
||||
/**
|
||||
* Gets CSS system class for modal root view.
|
||||
*/
|
||||
export function getModalRootViewCssClass(): string;
|
||||
export const MODAL_ROOT_VIEW_CSS_CLASS;
|
||||
|
||||
/**
|
||||
* Gets CSS system classes for root view.
|
||||
*/
|
||||
export const ROOT_VIEW_CSS_CLASS;
|
||||
|
||||
/**
|
||||
* Gets a list of the current system classes.
|
||||
* Intended for internal use only
|
||||
*/
|
||||
export function getSystemCssClasses(): string[];
|
||||
|
||||
/**
|
||||
* Pushes to the list of the current system classes.
|
||||
* Intended for internal use only
|
||||
*/
|
||||
export function pushToSystemCssClasses(value: string): number;
|
||||
|
||||
/**
|
||||
* Removes value from the list of current system classes
|
||||
* Intended for internal use only
|
||||
* @param value
|
||||
*/
|
||||
export function removeSystemCssClass(value: string): string;
|
||||
|
||||
/**
|
||||
* Same as MODAL_ROOT_VIEW_CSS_CLASS
|
||||
*/
|
||||
export function getModalRootViewCssClass(): string;
|
||||
|
||||
/**
|
||||
* Gets CSS system classes for root view. Same as ROOT_VIEW_CSS_CLASS + _getCssClasses
|
||||
* Intended for internal use only
|
||||
* @deprecated Use ROOT_VIEW_CSS_CLASS or getCssClasses() instead
|
||||
*/
|
||||
export function getRootViewCssClasses(): string[];
|
||||
|
||||
/**
|
||||
* Appends new CSS class to the system classes and returns the new length of the array.
|
||||
* Intended for internal use only
|
||||
* @deprecated Use pushToCssClasses() instead
|
||||
* @param value New CSS system class.
|
||||
*/
|
||||
export function pushToRootViewCssClasses(value: string): number;
|
||||
|
||||
/**
|
||||
* Removes CSS class from the system classes and returns it.
|
||||
* Intended for internal use only
|
||||
* @deprecated Use removeCssClass() instead
|
||||
* @param value
|
||||
*/
|
||||
export function removeFromRootViewCssClasses(value: string): string;
|
||||
export function removeFromRootViewCssClasses(value: string): string;
|
||||
Reference in New Issue
Block a user