Lightning Web Component - Custom Names
Clash Royale CLAN TAG#URR8PPP
I know this is not a very important question and with LWCs being new probably doesn't have an answer yet, but as I'm hoping to master these every little detail matters to me.
How do I customize the name of my component that appears on the Lighting Page Layout Editor? As you can see in the screenshot, Standard components are so nicely presented with icons, but custom components are forced to use camel casing and in addition LWCs have to have a lowercase first character. Is there not a better way?
Perhaps there is a better way to ask this question or refer to this section of the editor
lightning page-layout lightning-web-components
add a comment |
I know this is not a very important question and with LWCs being new probably doesn't have an answer yet, but as I'm hoping to master these every little detail matters to me.
How do I customize the name of my component that appears on the Lighting Page Layout Editor? As you can see in the screenshot, Standard components are so nicely presented with icons, but custom components are forced to use camel casing and in addition LWCs have to have a lowercase first character. Is there not a better way?
Perhaps there is a better way to ask this question or refer to this section of the editor
lightning page-layout lightning-web-components
add a comment |
I know this is not a very important question and with LWCs being new probably doesn't have an answer yet, but as I'm hoping to master these every little detail matters to me.
How do I customize the name of my component that appears on the Lighting Page Layout Editor? As you can see in the screenshot, Standard components are so nicely presented with icons, but custom components are forced to use camel casing and in addition LWCs have to have a lowercase first character. Is there not a better way?
Perhaps there is a better way to ask this question or refer to this section of the editor
lightning page-layout lightning-web-components
I know this is not a very important question and with LWCs being new probably doesn't have an answer yet, but as I'm hoping to master these every little detail matters to me.
How do I customize the name of my component that appears on the Lighting Page Layout Editor? As you can see in the screenshot, Standard components are so nicely presented with icons, but custom components are forced to use camel casing and in addition LWCs have to have a lowercase first character. Is there not a better way?
Perhaps there is a better way to ask this question or refer to this section of the editor
lightning page-layout lightning-web-components
lightning page-layout lightning-web-components
asked Feb 4 at 5:41
XtremefaithXtremefaith
2,24511550
2,24511550
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
To use an icon, specify a SVG file named component.svg in the bundle, where component is the name of the component (e.g. if the component name is helloWorld
, the file is helloWorld.svg
). You can't use standard icons by name, though you could copy the necessary code from SLDS if you'd like. To specify a label, use masterLabel
in the component.js-meta.xml file. You can read more about it in Configure a Component for Lightning App Builder.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "459"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f248965%2flightning-web-component-custom-names%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
To use an icon, specify a SVG file named component.svg in the bundle, where component is the name of the component (e.g. if the component name is helloWorld
, the file is helloWorld.svg
). You can't use standard icons by name, though you could copy the necessary code from SLDS if you'd like. To specify a label, use masterLabel
in the component.js-meta.xml file. You can read more about it in Configure a Component for Lightning App Builder.
add a comment |
To use an icon, specify a SVG file named component.svg in the bundle, where component is the name of the component (e.g. if the component name is helloWorld
, the file is helloWorld.svg
). You can't use standard icons by name, though you could copy the necessary code from SLDS if you'd like. To specify a label, use masterLabel
in the component.js-meta.xml file. You can read more about it in Configure a Component for Lightning App Builder.
add a comment |
To use an icon, specify a SVG file named component.svg in the bundle, where component is the name of the component (e.g. if the component name is helloWorld
, the file is helloWorld.svg
). You can't use standard icons by name, though you could copy the necessary code from SLDS if you'd like. To specify a label, use masterLabel
in the component.js-meta.xml file. You can read more about it in Configure a Component for Lightning App Builder.
To use an icon, specify a SVG file named component.svg in the bundle, where component is the name of the component (e.g. if the component name is helloWorld
, the file is helloWorld.svg
). You can't use standard icons by name, though you could copy the necessary code from SLDS if you'd like. To specify a label, use masterLabel
in the component.js-meta.xml file. You can read more about it in Configure a Component for Lightning App Builder.
answered Feb 4 at 5:51
sfdcfoxsfdcfox
257k12201443
257k12201443
add a comment |
add a comment |
Thanks for contributing an answer to Salesforce Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f248965%2flightning-web-component-custom-names%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown