Coder Social home page Coder Social logo

tabblazor / tabblazor Goto Github PK

View Code? Open in Web Editor NEW
404.0 404.0 104.0 54.17 MB

Blazor admin template based on Tabler UI

Home Page: https://tabblazor.com

License: MIT License

HTML 19.03% CSS 3.48% C# 73.90% JavaScript 1.42% SCSS 2.18%
admin-dashboard admin-template admin-theme blazor blazor-components blazor-tabler tabler

tabblazor's Introduction

tabblazor's People

Contributors

hamidrezahy avatar jacobpihl avatar jig1314 avatar joadan avatar kazarth avatar magahl avatar matthewcarse avatar mfaalk avatar ricred avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tabblazor's Issues

Tables's row columns could not work with cssClass property.

Hi.
It's great project!!
I'm working on table feature. but can't apply cssClass for row columns.
It's seem to need to be fixed below code.
thanks.


public abstract class TableRowComponentBase : ComponentBase
...
public string GetColumnClass(IColumn column)
{
//return "";
return new ClassBuilder()
.AddIf("display-none", !column.Visible)
.AddIf(column.CssClass, column.CssClass != null)
.ToString();
}

TablerIcons from table sample missing

where is TablerIcons.Info_circle?
in,

error,
error CS0103: The name 'TablerIcons' does not exist in the current context

code from the samples at https://tabblazor.com/docs/tables,
@using TabBlazor;
...
@code{
...
private async Task ShowDialog( string title ) {
await ModalService.ShowDialogAsync(new TabBlazor.Components.Modals.DialogOptions {
CancelText = "",
StatusColor = TablerColor.Primary,
IconType = TablerIcons.Info_circle,
MainText = title
});
}
}

nuget,
nuget TabBlazor 0.7.10-alpha

_Imports.razor,
@using TabBlazor

Program.cs,
builder.Services.AddTabler();
builder.Services.AddTabBlazor();

_Layout.cshtml, at the end of Head tag

<script src="_content/TabBlazor/js/tabblazor.js"></script>

SwitchContent not work on Firefox browser

I use this code:

<SwitchContent Animation="SwitchAnimation.Flip" ActiveChanged="OnAgrementChanged"> <DefaultTemplate> <Icon IconType="@TablerIcons.Thumb_down" style="height:22px;" TextColor="TablerColor.Danger" /> </DefaultTemplate> <ActiveTemplate> <Icon IconType="@TablerIcons.Thumb_up" style="height:22px;" TextColor="TablerColor.Teal" /> </ActiveTemplate> </SwitchContent>

In Firefox browser are shown both icons at same time. In all other browser it work.

I use FireFix browser version 112.0.1 with default settings

Browser console error

Hello
I'm getting the below error in the browser console when adding the DropDown component or a Select.
I copied the example just like the DOCs project, but I think it must be missing some reference, but I'm not able to find the fault.

blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Could not find 'tabBlazor.clickOutsideHandler.addEvent' ('tabBlazor' was undefined). Error: Could not find 'tabBlazor.clickOutsideHandler.addEvent' ('tabBlazor' was undefined). at https://localhost:44315/_framework/blazor.webassembly.js:1:1287 at Array.forEach (<anonymous>) at e.findFunction (https://localhost:44315/_framework/blazor.webassembly.js:1:1247) at b (https://localhost:44315/_framework/blazor.webassembly.js:1:2989) at https://localhost:44315/_framework/blazor.webassembly.js:1:3935 at new Promise (<anonymous>) at Object.beginInvokeJSFromDotNet (https://localhost:44315/_framework/blazor.webassembly.js:1:3908) at Object.w [as invokeJSFromDotNet] (https://localhost:44315/_framework/blazor.webassembly.js:1:64232) at _mono_wasm_invoke_js_blazor (https://localhost:44315/_framework/dotnet.5.0.12.js:1:190800) at do_icall (wasm://wasm/00aba242:wasm-function[10596]:0x194e4e) Microsoft.JSInterop.JSException: Could not find 'tabBlazor.clickOutsideHandler.addEvent' ('tabBlazor' was undefined). Error: Could not find 'tabBlazor.clickOutsideHandler.addEvent' ('tabBlazor' was undefined). at https://localhost:44315/_framework/blazor.webassembly.js:1:1287 at Array.forEach (<anonymous>) at e.findFunction (https://localhost:44315/_framework/blazor.webassembly.js:1:1247) at b (https://localhost:44315/_framework/blazor.webassembly.js:1:2989) at https://localhost:44315/_framework/blazor.webassembly.js:1:3935 at new Promise (<anonymous>) at Object.beginInvokeJSFromDotNet (https://localhost:44315/_framework/blazor.webassembly.js:1:3908) at Object.w [as invokeJSFromDotNet] (https://localhost:44315/_framework/blazor.webassembly.js:1:64232) at _mono_wasm_invoke_js_blazor (https://localhost:44315/_framework/dotnet.5.0.12.js:1:190800) at do_icall (wasm://wasm/00aba242:wasm-function[10596]:0x194e4e) at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__15'1[[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args) at TabBlazor.ClickOutside.OnAfterRenderAsync(Boolean firstRender) in D:\dev\TabBlazor\src\TabBlazor\Components\Utilities\ClickOutside.razor:line 22 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

Suggestion: Table custom edit modal

This isn't as much of an issue as maybe a suggestion. Or maybe there is an issue way of doing this that I've not thought about.

In the Table component. There are two edit modes: Inline and Popup. The latter gives you a "canned" modal that has a list of fields from the table itself. This works well for small column counts, but sometimes the way the data is shown, needs to be organized in a better way (like an address for example), or even edit fields that are part of the model but are not shown in the table itself to conserve real estate.

Is there a way of making a third edit mode (call it custom), where you can specify a razor component and pass the model as a parameter. Show said razor component as a modal. The developer will need to take care of all validation. And on submit, pass a ModalResult.Ok with the model object so that the table can refresh it.

I know that you can probably do this via a button or icon. But I think it would be a nice feature to have that functionality in the component and make things really flexible.

Love the work. This is great stuff.

how to use different icon providers with NavbarMenuItem

Hi I am new to blazor and I came across TabBlazor , I really like it, but struggling with few things.

Lets suppose I wanted to use a different icon provider I.E google materials etc..
Once I have imported all the files in the css folder , how can the NavbarMenuItem be changed to use a different icon provider?

How can I generate the path etc.. from google material icons to add to the icons class?

Any suggestions?
Many thanks

Table Pagination?

Hi

Table Pagination on the server side?
could you please provide an example?
thanks

Blazor Modal

Hi there. I have a quick question. This is built on top of Blazor. I built my own popup (Modal) and the close X, refuses to closes the modal or better yet refuses to call the function to close the modal. Since I don't know anything about Tabler, but I am guessing something is blocking the call. Do you guys have any ideas or can you tell me what I might be missing in my thinking on why I can't do a standard Blazor Modal?

-Mike

DropDown not closed after select

Great job with this Template,

My issue is when selecting an option from dropdown the selected value isn't rendered in select box and options list isn't closed

Table re-rending

Hi

I tried to render different number of columns in one component. However, because the number of columns in the component is not re-rendered, an outOfRange Error occurs. So I tried calling HasStateChanged() but it didn't work. Is there any way to re-render the table component?

Offline use

Hi,

currently TabBlazor uses
<link rel="stylesheet" href="https://unpkg.com/@tabler/[email protected]/dist/css/tabler.min.css">
in the HEAD area... which is unfortunate since we want to use this template for a intranet application that has no internet connection whatsoever.

Therefore in pure intranet environments the Template is broken and wont work.

Is it possible to add, rather soonish, a switch to disable this link and provide the CSS offline by hand?

Tableform Queries

Hello,

I am very new to Blazor and decided to use to TabBlazor template for my very first project.
I have successfully integrated Edit table with popup edit mode (https://tabblazor.com/docs/tables) in my project. But I am having some challenges.
First, would you please suggest how can i change the button text from Add row to Add order.
Second, is it possible to show more edit fields of input box, drop down and etc than in table column?

Thank you in advance.

Table Header Column Css Class

Hello... Loving this project so far.

I have a quick question. I am using the table component. I am specifying my ChildContent and my Column (s) for the table. And I need to make some of the columns dissapear on a small screen.

The Column child component has a CssClass parameter. But it only gets applied to the TD, not the TH. So, when the screen is small only the content is hidden, and the header stays.

How can I get around this?

Thanks

More navigation/layout options

Hi, and great work!

I was wondering when/if you will get to more layout options? Preferably dark mode with horizontal sticky header :) (Sorry if I missed something when looking at the code).

Icon component lacks the icon css class

First of all : great work ๐Ÿ‘

A simple remark/suggestion:
The Icon component lacks the css class icon, which is, i think, a default class for this component.
And in some cases you want to add icon-inline as well, which could be provided manually ofcourse..

Table Edit Bug 001

How can I display a field only in my popup dialog, without display always in table column?

Do not have any change

hi
In template project when i change icon or add some components I do not have any change
Plesase direction me

Tabs are shown above dropdown

When having Tabs with a dropdown just above them the opened Dropdown is shown below the tabs

image

Note the dropdowns border & the text in the Tab extending into the dropdown

Identity Roles/Users

Hello love this, and the thought process, can you please add user / role management as an option.

RTL Feature

Please could you provide RTL feature , or could you help me about how to add it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.