Skip to content

documentation(866032): Documented adding outline color of the floating action button component #2872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
public ActionResult FabStyles()
{
return View();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@using Syncfusion.EJ2.Buttons

<div id="target" style="min-height:200px; position:relative; width:300px; border:1px solid;">
@Html.EJS().Fab("fab").Target("#target").IconCss("e-icons e-people").Content("Contact").CssClass("custom-css").Render()
</div>
<style>
.custom-css.e-fab.e-btn {
border-color: darkgrey;
border-width: 4px;
}
</style>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@using Syncfusion.EJ2.Buttons

<div id="target" style="min-height:200px; position:relative; width:300px; border:1px solid;">
<ejs-fab id="fab" target="#target" cssClass="custom-css" iconCss="e-icons e-people" content="Contact"></ejs-fab>
</div>
<style>
.custom-css.e-fab.e-btn {
border-color: darkgrey;
border-width: 4px;
}
</style>
21 changes: 20 additions & 1 deletion ej2-asp-core-mvc/floating-action-button/EJ2_ASP.MVC/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,23 @@ By using [CssClass](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.

{% endif %}

![Asp.Net MVC Floating Action Button control with Hover](images/onhover.png)
![Asp.Net MVC Floating Action Button control with Hover](images/onhover.png)

## Outline customization

By using the [CssClass](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.Buttons.Fab.html#Syncfusion_EJ2_Buttons_Fab_CssClass) property, you can customize the outline color of the Floating Action Button.

{% if page.publishingplatform == "aspnet-mvc" %}

{% tabs %}
{% highlight razor tabtitle="CSHTML" %}
{% include code-snippet/floating-action-button/styles/custom-outline/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Fabstyles.cs" %}
{% include code-snippet/floating-action-button/styles/custom-outline/fabstyles.cs %}
{% endhighlight %}
{% endtabs %}

{% endif %}

![Asp.Net MVC Floating Action Button control with Outline](images/FabOutline.png)
16 changes: 16 additions & 0 deletions ej2-asp-core-mvc/floating-action-button/EJ2_ASP.NETCORE/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,19 @@ By using [CssClass](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2
{% endif %}

![Asp.Net Core Floating Action Button control with Hover](images/onhover.png)

## Outline customization

By using the [CssClass](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Buttons.Fab.html#Syncfusion_EJ2_Buttons_Fab_CssClass) property, you can customize the outline color of the Floating Action Button.

{% if page.publishingplatform == "aspnet-core" %}

{% tabs %}
{% highlight cshtml tabtitle="CSHTML" %}
{% include code-snippet/floating-action-button/styles/custom-outline/tagHelper %}
{% endhighlight %}
{% endtabs %}

{% endif %}

![Asp.Net Core Floating Action Button control with Outline](images/FabOutline.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.