Lightning Web Component - Custom Names

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












5















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



enter image description here










share|improve this question


























    5















    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



    enter image description here










    share|improve this question
























      5












      5








      5








      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



      enter image description here










      share|improve this question














      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



      enter image description here







      lightning page-layout lightning-web-components






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 4 at 5:41









      XtremefaithXtremefaith

      2,24511550




      2,24511550




















          1 Answer
          1






          active

          oldest

          votes


















          6














          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.






          share|improve this answer






















            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
            );



            );













            draft saved

            draft discarded


















            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









            6














            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.






            share|improve this answer



























              6














              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.






              share|improve this answer

























                6












                6








                6







                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.






                share|improve this answer













                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 4 at 5:51









                sfdcfoxsfdcfox

                257k12201443




                257k12201443



























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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






                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay