Merge branch 'master' of https://gitea.tecnosis.net/CACOA/HerramientaCASA
This commit is contained in:
@@ -39,7 +39,10 @@
|
||||
</div>
|
||||
|
||||
<div class="col-6 formatoCampos">
|
||||
<label class="tituloLbl">Jornada laboral:</label>
|
||||
<label class="tituloLbl">
|
||||
@UtilidadesCASA.CreateTooltip("Texto del tooltip")
|
||||
Jornada laboral:
|
||||
</label>
|
||||
<div class="d-flex" style="gap:3px;">
|
||||
<NumberInput TValue="double" Min="0" @bind-Value="itemSeleccionadoTemporal.JornadaLaboral" class="inputForm derecha"></NumberInput> h/sem
|
||||
</div>
|
||||
|
||||
19
HerramientaCASA/Utilidades.razor
Normal file
19
HerramientaCASA/Utilidades.razor
Normal file
@@ -0,0 +1,19 @@
|
||||
@using BlazorBootstrap
|
||||
|
||||
@code {
|
||||
RenderFragment RenderInfoTooltip(string tituloInfo) => __builder =>
|
||||
{
|
||||
__builder.OpenComponent(0, typeof(Tooltip));
|
||||
__builder.AddAttribute(1, "Title", tituloInfo);
|
||||
__builder.AddAttribute(2, "class", "custom-tooltip");
|
||||
__builder.AddAttribute(3, "role", "button");
|
||||
__builder.AddAttribute(4, "ChildContent", (RenderFragment)(__builder2 =>
|
||||
{
|
||||
__builder2.OpenComponent(5, typeof(Icon));
|
||||
__builder2.AddAttribute(6, "Name", IconName.InfoCircleFill);
|
||||
__builder2.AddAttribute(7, "Class", "text-primary");
|
||||
__builder2.CloseComponent();
|
||||
}));
|
||||
__builder.CloseComponent();
|
||||
};
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using bdHerramientaCACOA.dbcontext;
|
||||
using BlazorBootstrap;
|
||||
using HerramientaCASA.Model;
|
||||
using HerramientaCASA.ViewModel;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Text;
|
||||
using static HerramientaCASA.Components.Pages.ConfiguracionPages.ConvenioColectivo;
|
||||
|
||||
@@ -603,5 +604,23 @@ namespace HerramientaCASA
|
||||
URBAN,
|
||||
URBANDSIMP
|
||||
}
|
||||
|
||||
public static RenderFragment CreateTooltip(string titulo) => __builder =>
|
||||
{
|
||||
if (titulo != "") {
|
||||
__builder.OpenComponent(0, typeof(Tooltip));
|
||||
__builder.AddAttribute(1, "Title", titulo);
|
||||
__builder.AddAttribute(2, "class", "custom-tooltip");
|
||||
__builder.AddAttribute(3, "role", "button");
|
||||
__builder.AddAttribute(4, "ChildContent", (RenderFragment)(__builder2 =>
|
||||
{
|
||||
__builder2.OpenComponent(5, typeof(Icon));
|
||||
__builder2.AddAttribute(6, "Name", IconName.InfoCircleFill);
|
||||
__builder2.AddAttribute(7, "Class", "text-primary ");
|
||||
__builder2.CloseComponent();
|
||||
}));
|
||||
__builder.CloseComponent();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user