Posts

Showing posts from 2020

Lightning:input type date not displaying correctly

Image
CSS Issue like this: Using this CSS: .THIS .slds-datepicker__month tr>td:first-child { padding-left:0px !important; } .THIS .slds-datepicker__month tr>th { padding-left:0px !important; padding-left: 0px !important; } .THIS .slds-datepicker__month tr>td:last-child { padding-right: 0px !important; padding-left: 0px !important; } .THIS .slds-datepicker__month tr>th:last-child { padding-right: 0px !important; padding-left: 0px !important; } .THIS .slds-datepicker__month .slds-day{ margin:0px !important; } Output will come like this Hope this will help to you. Thanks Apex Coder

How to debug a aura component is running on community or a normal app

Image
Using this code: doInit: function(component, event, helper) { var context = (new RegExp('.*?\/s\/','g')).exec(window.location.href); var path=(new RegExp(':\/\/(.*\.com)\/([A-Za-z0-9]*\/)?s\/','g')).exec(window.location.href); context != null ? path[2] == undefined ? '' : path[2] : null; console.log('###',context); } Community Debug: Non-Community Debug: Thanks Apex Coder