BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
This is my code:
<SfTooltip ID="SSAOTooltip" IsSticky="false" Target="#SSAOCheckbox" OpensOn="Hover"
CssClass="e-primary">
<hr>
<SfCheckBox ID="SSAOCheckbox" Label="SSAO" @bind-Checked="@graphicsSettings.SSAO"></SfCheckBox>
<strong>@(graphicsSettings.SSAO != false ? "On" : "Off" )</strong>
</SfTooltip>
I want to create a checkbox for a property i have. However i have found that it does not show a tick like in the documentation. Because of this i had to add a true or false text next to the checkbox so the user could see if the option is on or off.
This is what it looks like. As you can see it's very unclear without the text saying if it's on or off. I'm not sure what i've done wrong, is there an extra option for adding the tick to make the checkbox clearer?
<SfTooltip ID="SSAOTooltip" IsSticky="false" Target="#SSAOCheckbox" OpensOn="Hover"
CssClass="e-primary">
<hr>
<SfCheckBox ID="SSAOCheckbox" Label="SSAO" @bind-Checked="SSAO"></SfCheckBox>
<strong>@(SSAO != false ? "On" : "Off" )</strong>
</SfTooltip>
@code{
public bool SSAO = true;
} |
My checkbox was nested inside of some over components so i decided to take it outside and test it. I managed to get a tick to show but it quickly disappears. I decided to try the code from the documentation for creating a checked checkbox, https://blazor.syncfusion.com/documentation/check-box/accessibility .
<SfCheckBox @bind-Checked="isChecked" Label="Checked State"></SfCheckBox>
<br />
@code {
private bool isChecked = true;
}
So that is the code for a checked state checkbox, when viewing it however this is what i get:
However when hovering over the checkbox i can see the tick:
But it doesn't stay up. Sorry if this is an issue on my side not yours, just trying to figure out what i'm doing wrong.