Skip to content

Commit 2e0e9f0

Browse files
Merge pull request #2872 from syncfusion-content/EJ2-866136-fabOutlineDev
documentation(866032): Documented adding outline color of the floating action button component
2 parents 2697e0f + 8294d05 commit 2e0e9f0

File tree

6 files changed

+62
-1
lines changed

6 files changed

+62
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public ActionResult FabStyles()
2+
{
3+
return View();
4+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@using Syncfusion.EJ2.Buttons
2+
3+
<div id="target" style="min-height:200px; position:relative; width:300px; border:1px solid;">
4+
@Html.EJS().Fab("fab").Target("#target").IconCss("e-icons e-people").Content("Contact").CssClass("custom-css").Render()
5+
</div>
6+
<style>
7+
.custom-css.e-fab.e-btn {
8+
border-color: darkgrey;
9+
border-width: 4px;
10+
}
11+
</style>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@using Syncfusion.EJ2.Buttons
2+
3+
<div id="target" style="min-height:200px; position:relative; width:300px; border:1px solid;">
4+
<ejs-fab id="fab" target="#target" cssClass="custom-css" iconCss="e-icons e-people" content="Contact"></ejs-fab>
5+
</div>
6+
<style>
7+
.custom-css.e-fab.e-btn {
8+
border-color: darkgrey;
9+
border-width: 4px;
10+
}
11+
</style>

ej2-asp-core-mvc/floating-action-button/EJ2_ASP.MVC/styles.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,23 @@ By using [CssClass](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.
7070

7171
{% endif %}
7272

73-
![Asp.Net MVC Floating Action Button control with Hover](images/onhover.png)
73+
![Asp.Net MVC Floating Action Button control with Hover](images/onhover.png)
74+
75+
## Outline customization
76+
77+
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.
78+
79+
{% if page.publishingplatform == "aspnet-mvc" %}
80+
81+
{% tabs %}
82+
{% highlight razor tabtitle="CSHTML" %}
83+
{% include code-snippet/floating-action-button/styles/custom-outline/razor %}
84+
{% endhighlight %}
85+
{% highlight c# tabtitle="Fabstyles.cs" %}
86+
{% include code-snippet/floating-action-button/styles/custom-outline/fabstyles.cs %}
87+
{% endhighlight %}
88+
{% endtabs %}
89+
90+
{% endif %}
91+
92+
![Asp.Net MVC Floating Action Button control with Outline](images/FabOutline.png)

ej2-asp-core-mvc/floating-action-button/EJ2_ASP.NETCORE/styles.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,19 @@ By using [CssClass](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2
6666
{% endif %}
6767

6868
![Asp.Net Core Floating Action Button control with Hover](images/onhover.png)
69+
70+
## Outline customization
71+
72+
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.
73+
74+
{% if page.publishingplatform == "aspnet-core" %}
75+
76+
{% tabs %}
77+
{% highlight cshtml tabtitle="CSHTML" %}
78+
{% include code-snippet/floating-action-button/styles/custom-outline/tagHelper %}
79+
{% endhighlight %}
80+
{% endtabs %}
81+
82+
{% endif %}
83+
84+
![Asp.Net Core Floating Action Button control with Outline](images/FabOutline.png)
Loading

0 commit comments

Comments
 (0)