File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
packages/uui-ref-node/lib Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ const Template: Story = props => html`
36
36
?selectable =${ props . selectable }
37
37
?selectOnly =${ props . selectOnly }
38
38
?error=${ props . error }
39
- ?disabled=${ props . disabled } >
39
+ ?disabled=${ props . disabled }
40
+ ?readonly=${ props . readonly } >
40
41
< uui-tag size ="s " slot ="tag " color ="positive "> Published</ uui-tag >
41
42
< uui-action-bar slot ="actions "
42
43
> < uui-button label ="delete "
@@ -201,6 +202,32 @@ Disabled.parameters = {
201
202
} ,
202
203
} ;
203
204
205
+ export const Readonly : Story = props => html `
206
+ < uui-ref-node
207
+ ?readonly ="${ props . readonly } "
208
+ name ="Rabbit Suit Product Page "
209
+ detail ="path/to/nowhere ">
210
+ </ uui-ref-node >
211
+ ` ;
212
+
213
+ Readonly . args = {
214
+ readonly : true ,
215
+ } ;
216
+
217
+ Readonly . parameters = {
218
+ docs : {
219
+ source : {
220
+ code : `
221
+ <uui-ref-node
222
+ readonly
223
+ name="Rabbit Suit Product Page"
224
+ detail="path/to/nowhere">
225
+ </uui-ref-node>
226
+ ` ,
227
+ } ,
228
+ } ,
229
+ } ;
230
+
204
231
const listOfNodeNames : string [ ] = ArrayOfUmbracoWords ( 10 ) ;
205
232
export const Listed : Story = ( ) => html `
206
233
< uui-ref-list >
You can’t perform that action at this time.
0 commit comments