You need to sign in to do that
Don't have an account?
Tarun Das
Problems while trying to rewrite the existing quiz page content of webpage using lightning
I am trying to rewrite the quiz page content of webpage as shown in picture where user selects a question using radio button attached with salesforce lightning ,but i am facing below challenges
1)How to bring the entire content of to center of page ,currently its aligned at left top corner of page here is my cmp page code
<aura:component > <h1>How Much Weight You Want To Loose</h1> <aura:attribute name="options" type="List" default="[ {'label': 'Not Sure', 'value': 'option1'}, {'label': 'Greater Than 40 lb', 'value': 'option2'}, {'label': 'Less Than lb', 'value': 'option2'}, {'label': 'Will Decide Later', 'value': 'option2'}, ]"/> <aura:attribute name="value" type="String" default="option1"/> <lightning:radioGroup name="radioGroup" label="Select Your Option Then Click Next" options="{! v.options }" value="{! v.value }" type="radio"/> </aura:component>
2)How do i include next button in bottom of my above lightning component
Regards, Tarun
1)How to bring the entire content of to center of page ,currently its aligned at left top corner of page here is my cmp page code
<aura:component > <h1>How Much Weight You Want To Loose</h1> <aura:attribute name="options" type="List" default="[ {'label': 'Not Sure', 'value': 'option1'}, {'label': 'Greater Than 40 lb', 'value': 'option2'}, {'label': 'Less Than lb', 'value': 'option2'}, {'label': 'Will Decide Later', 'value': 'option2'}, ]"/> <aura:attribute name="value" type="String" default="option1"/> <lightning:radioGroup name="radioGroup" label="Select Your Option Then Click Next" options="{! v.options }" value="{! v.value }" type="radio"/> </aura:component>
2)How do i include next button in bottom of my above lightning component
Regards, Tarun
Greetings to you!
You can use slds-align_absolute-center
Please try the below code:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Thanks for response and sorry for delayed reply,unfortunately buttons seems distorted,here is o/p
To extend force:slds:
Regards,
Khan Anas