@@ -6,6 +6,7 @@ import { ObjectPageTitle } from '../ObjectPageTitle';
6
6
import { ObjectPageHeader } from ' ../ObjectPageHeader' ;
7
7
import { ObjectPageSection } from ' ../ObjectPageSection' ;
8
8
import { ObjectPageSubSection } from ' ../ObjectPageSubSection' ;
9
+ import { CodeBlock } from ' @sb/components/DomRefTable' ;
9
10
10
11
<Meta of = { ComponentStories } />
11
12
@@ -19,6 +20,47 @@ import { ObjectPageSubSection } from '../ObjectPageSubSection';
19
20
20
21
<ControlsWithNote of = { ComponentStories .Default } />
21
22
23
+ ## Methods
24
+
25
+ This component exposes public methods. You can use them directly on the instance of the component, e.g. by using React Refs.
26
+
27
+ <table >
28
+ <thead >
29
+ <tr >
30
+ <th >Name</th >
31
+ <th >Parameters</th >
32
+ <th >Description</th >
33
+ </tr >
34
+ </thead >
35
+ <tbody >
36
+ <tr >
37
+ <td >
38
+ <CodeBlock >
39
+ <span style = { { color: ' rgb(64, 120, 242)' }} >toggleHeaderArea</span >
40
+ <span style = { { color: ' rgb(56, 58, 66)' }} >(</span >
41
+ <span style = { { color: ' rgb(56, 58, 66)' }} >snapped</span >
42
+ <span style = { { color: ' rgb(64, 120, 242)' }} >?</span >
43
+ <span style = { { color: ' rgb(64, 120, 242)' }} >: </span >
44
+ <span style = { { color: ' rgb(80, 161, 79)' }} >boolean</span >
45
+ <span style = { { color: ' rgb(56, 58, 66)' }} >)</span >
46
+ <span style = { { color: ' rgb(64, 120, 242)' }} >: </span >
47
+ <span style = { { color: ' rgb(80, 161, 79)' }} >void</span >
48
+ </CodeBlock >
49
+ </td >
50
+ <td >
51
+ <div >
52
+ <p style = { { fontWeight: ' bold' }} >snapped</p >
53
+ <p style = { { paddingInline: ' 1rem' }} >
54
+ Defines if the header should be snapped or expanded. <br /> If the argument is not provided, the header is
55
+ toggled.
56
+ </p >
57
+ </div >
58
+ </td >
59
+ <td >Toggles the ` headerArea ` of the ` ObjectPage ` .</td >
60
+ </tr >
61
+ </tbody >
62
+ </table >
63
+
22
64
# More Examples
23
65
24
66
## ObjectPage with IllustratedMessage (` UnableToLoad ` ) placeholder
0 commit comments