40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
namespace GPW.CORE.Smart.Components
|
|
{
|
|
public partial class NavBottom
|
|
{
|
|
private string cssAll = "";
|
|
private string cssContenuto = "";
|
|
private string hideMenuCSS = "hidden";
|
|
private string hideButtonCSS = "visible";
|
|
protected bool isActive { get; set; } = false;
|
|
protected void slideOut()
|
|
{
|
|
cssAll = "bottom: 15rem;";
|
|
cssContenuto = "height: 100%";
|
|
isActive = true;
|
|
}
|
|
protected void slideIn()
|
|
{
|
|
cssAll = "bottom: 0rem;";
|
|
isActive = false;
|
|
}
|
|
|
|
protected void showMenu()
|
|
{
|
|
hideMenuCSS = "visible; height: 40%";
|
|
hideButtonCSS = "hidden";
|
|
}
|
|
protected void hideMenu()
|
|
{
|
|
hideMenuCSS = "hidden; height: 0%;";
|
|
hideButtonCSS = "visible";
|
|
}
|
|
}
|
|
} |