UNPKG

2.07 kBTypeScriptView Raw
1import * as i0 from "@angular/core";
2/**
3 *
4 * Reveal card example:
5 * @stacked-example(My example, reveal-card/reveal-card-showcase.component)
6 *
7 * As a content Reveal card accepts two instances of `nb-card` - for front and back sides.
8 *
9 * Basic reveal card configuration:
10 *
11 * ```html
12 * <nb-reveal-card>
13 * <nb-card-front>
14 * <nb-card>
15 * <nb-card-body>
16 * Front
17 * </nb-card-body>
18 * </nb-card>
19 * </nb-card-front>
20 * <nb-card-back>
21 * <nb-card>
22 * <nb-card-body>
23 * Back
24 * </nb-card-body>
25 * </nb-card>
26 * </nb-card-back>
27 * </nb-reveal-card>
28 * ```
29 *
30 * ### Installation
31 *
32 * Import `NbCardModule` to your feature module.
33 * ```ts
34 * @NgModule({
35 * imports: [
36 * // ...
37 * NbCardModule,
38 * ],
39 * })
40 * export class PageModule { }
41 * ```
42 * ### Usage
43 *
44 * Reveal Card with header and footer:
45 * @stacked-example(With Header & Footer, reveal-card/reveal-card-full.component)
46 *
47 * Colored reveal-cards could be simply configured by providing a `status` property:
48 * @stacked-example(Colored Card, reveal-card/reveal-card-colors.component)
49 *
50 * It is also possible to assign an `accent` property for a slight card highlight
51 * as well as combine it with `status`:
52 * @stacked-example(Accent Card, reveal-card/reveal-card-accents.component)
53 *
54 * @additional-example(Multiple Sizes, reveal-card/reveal-card-sizes.component)
55 */
56export declare class NbRevealCardComponent {
57 /**
58 * Reveal state
59 * @type boolean
60 */
61 revealed: boolean;
62 /**
63 * Show/hide toggle button to be able to control toggle from your code
64 * @type {boolean}
65 */
66 showToggleButton: boolean;
67 toggle(): void;
68 static ɵfac: i0.ɵɵFactoryDeclaration<NbRevealCardComponent, never>;
69 static ɵcmp: i0.ɵɵComponentDeclaration<NbRevealCardComponent, "nb-reveal-card", never, { "revealed": { "alias": "revealed"; "required": false; }; "showToggleButton": { "alias": "showToggleButton"; "required": false; }; }, {}, never, ["nb-card-front", "nb-card-back"], false, never>;
70}