Code first Rendering Parameter templates
Clash Royale CLAN TAG#URR8PPP
up vote
5
down vote
favorite
What is the best way (if any) to add a rendering parameter template to a rendering using JSS?
I have looked at some of the import processors, but canâÂÂt find a simple way of doing this from javascript.
jss
New contributor
add a comment |Â
up vote
5
down vote
favorite
What is the best way (if any) to add a rendering parameter template to a rendering using JSS?
I have looked at some of the import processors, but canâÂÂt find a simple way of doing this from javascript.
jss
New contributor
add a comment |Â
up vote
5
down vote
favorite
up vote
5
down vote
favorite
What is the best way (if any) to add a rendering parameter template to a rendering using JSS?
I have looked at some of the import processors, but canâÂÂt find a simple way of doing this from javascript.
jss
New contributor
What is the best way (if any) to add a rendering parameter template to a rendering using JSS?
I have looked at some of the import processors, but canâÂÂt find a simple way of doing this from javascript.
jss
jss
New contributor
New contributor
New contributor
asked 3 hours ago
Jeppe Skovsen
283
283
New contributor
New contributor
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
This will be supported out of the box in the general availability release of JSS (with Sitecore 9.1).
Parameters templates are automatically created for any component that declares params, for example:
export default function(manifest: Manifest)
manifest.addComponent(
name: 'StyleguideComponentParams',
params: ['cssClass', 'columns', 'useCallToAction'],
);
becomes
Will you be able to set a type for each params? Like a checkbox or dropdown?
â Jeppe Skovsen
32 mins ago
Yes. There are TypeScript typings available that describe exactly what is possible, but basically the param array can accept either strings orRenderingParameterDefinition
objects, which accept the same properties as a template field definition.
â Kam Figy
22 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
This will be supported out of the box in the general availability release of JSS (with Sitecore 9.1).
Parameters templates are automatically created for any component that declares params, for example:
export default function(manifest: Manifest)
manifest.addComponent(
name: 'StyleguideComponentParams',
params: ['cssClass', 'columns', 'useCallToAction'],
);
becomes
Will you be able to set a type for each params? Like a checkbox or dropdown?
â Jeppe Skovsen
32 mins ago
Yes. There are TypeScript typings available that describe exactly what is possible, but basically the param array can accept either strings orRenderingParameterDefinition
objects, which accept the same properties as a template field definition.
â Kam Figy
22 mins ago
add a comment |Â
up vote
4
down vote
accepted
This will be supported out of the box in the general availability release of JSS (with Sitecore 9.1).
Parameters templates are automatically created for any component that declares params, for example:
export default function(manifest: Manifest)
manifest.addComponent(
name: 'StyleguideComponentParams',
params: ['cssClass', 'columns', 'useCallToAction'],
);
becomes
Will you be able to set a type for each params? Like a checkbox or dropdown?
â Jeppe Skovsen
32 mins ago
Yes. There are TypeScript typings available that describe exactly what is possible, but basically the param array can accept either strings orRenderingParameterDefinition
objects, which accept the same properties as a template field definition.
â Kam Figy
22 mins ago
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
This will be supported out of the box in the general availability release of JSS (with Sitecore 9.1).
Parameters templates are automatically created for any component that declares params, for example:
export default function(manifest: Manifest)
manifest.addComponent(
name: 'StyleguideComponentParams',
params: ['cssClass', 'columns', 'useCallToAction'],
);
becomes
This will be supported out of the box in the general availability release of JSS (with Sitecore 9.1).
Parameters templates are automatically created for any component that declares params, for example:
export default function(manifest: Manifest)
manifest.addComponent(
name: 'StyleguideComponentParams',
params: ['cssClass', 'columns', 'useCallToAction'],
);
becomes
answered 37 mins ago
Kam Figy
2,558618
2,558618
Will you be able to set a type for each params? Like a checkbox or dropdown?
â Jeppe Skovsen
32 mins ago
Yes. There are TypeScript typings available that describe exactly what is possible, but basically the param array can accept either strings orRenderingParameterDefinition
objects, which accept the same properties as a template field definition.
â Kam Figy
22 mins ago
add a comment |Â
Will you be able to set a type for each params? Like a checkbox or dropdown?
â Jeppe Skovsen
32 mins ago
Yes. There are TypeScript typings available that describe exactly what is possible, but basically the param array can accept either strings orRenderingParameterDefinition
objects, which accept the same properties as a template field definition.
â Kam Figy
22 mins ago
Will you be able to set a type for each params? Like a checkbox or dropdown?
â Jeppe Skovsen
32 mins ago
Will you be able to set a type for each params? Like a checkbox or dropdown?
â Jeppe Skovsen
32 mins ago
Yes. There are TypeScript typings available that describe exactly what is possible, but basically the param array can accept either strings or
RenderingParameterDefinition
objects, which accept the same properties as a template field definition.â Kam Figy
22 mins ago
Yes. There are TypeScript typings available that describe exactly what is possible, but basically the param array can accept either strings or
RenderingParameterDefinition
objects, which accept the same properties as a template field definition.â Kam Figy
22 mins ago
add a comment |Â
Jeppe Skovsen is a new contributor. Be nice, and check out our Code of Conduct.
Jeppe Skovsen is a new contributor. Be nice, and check out our Code of Conduct.
Jeppe Skovsen is a new contributor. Be nice, and check out our Code of Conduct.
Jeppe Skovsen is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f14593%2fcode-first-rendering-parameter-templates%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password