People

Repo info

Activity

so I guess you have also downloaded bundle.zip into your wwwroot right?

BarnyardTech

@BarnyardTech

I copied the files into css/blazorise folder

Mladen Macanović

@stsrki

I see that js files are in the root folder

also you have two bootstrap css versions, just fyi

BarnyardTech

@BarnyardTech

ahh let me check

That did the trick. One other issue is that I lose my left nav (as exists when creating a new razor components app). All my left nav aptions are missing.

I'm not an experienced developer so my questions are noobie

Mladen Macanović

@stsrki

you mean the default sidebar created by the Razor Component project template?

BarnyardTech

@BarnyardTech

yes

I just dropped your line chart into a page in that default framework

Mladen Macanović

@stsrki

I think you should place the site.css to be the last one

BarnyardTech

@BarnyardTech

Let me try

Perfect. I'm up an running. I look forward to playing around with Blazorise.

Mladen Macanović

@stsrki

Glad I could help :)

BarnyardTech

@BarnyardTech

Now I'm at home and trying to use Blazorise on another project. This time I get a build error: Error CS0029 Cannot implicitly convert type 'Microsoft.AspNetCore.Components.ElementRef' to 'Blazorise.Charts.LineChart<double>' Any ideas on this one?

BarnyardTech

@BarnyardTech

Never mind. I figured it out.

kiyote

@kiyote

@BarnyardTech Don't be afraid of client-side either. Blazorise works great for that scenario too. I'm loving Blazorise, takes a lot of the pain out of getting a good looking and functional page together.

BarnyardTech

@BarnyardTech

Thanks @kiyote . I'm starting with server side because it is further along and it meets my needs well enough for now. I'm intrigued with Ed Charbeneaux's demo of the dual-mode and might play around with that too. Regarding Blazorise... I haven't used it before but like you said, I'm hoping it will speed me up on nice looking UI.

Brett

@brettwinters

Question: i want to wrap the Blazorise Modal in a component along with data access etc. How to do this in Blazor? would I then expose a ref so i can load it from the parent?

Mladen Macanović

@stsrki

@brettwinters Have a look at this answer. I think it could be similar to your problem.You can also try to handle modal by using the ref attribute, that should also work.

Brett

@brettwinters

perfect! thanks @stsrki

_

Brett

@brettwinters

hi @stsrki - Have you implemented the BS transitions / animations on the Collapse? It seems to expand/collapse instantly so I'm not sure if this is by design. How to slow things down a little?

Mladen Macanović

@stsrki

@brettwinters It's little difficult to implement it because natively Bootstrap is using jquery to do the animation and I'm only switching the active class name on the collapse component. The other problem is that collapse content must have a defined Height so that animation could work. You can google around for some css so that animation will work for your own project.

Brett

@brettwinters

ok, thanks @stsrki - I'll look into that. Another question. I want to implement a drawer (like a collapse on the vertical axis) but without the predefined styling of the sidebar. Any tips for that?

Mladen Macanović

@stsrki

@brettwinters I think you should still be able to use collapse with a predefined width and then combine it with custom animation css. I would like to be of more help but I'm not that good with css.

Brett

@brettwinters

ok, thanks for the tip. No, problem - I'm very grateful for your work on Blazorise!

Ricardo

@ricardoromaobr

I'm looking the code, maybe I can help in some thing. Whats means HasCustomRegistration in the components?

Mladen Macanović

@stsrki

@ricardoromaobr HasCustomRegistration checks if there is a replacement or custom implementation of that same component. For example Button will render just button element. But maybe Bulma CSS or some other provider must also render div around button. In that case the custom component implementation will be rendered instead.

Ricardo

@ricardoromaobr

Great! And each provider Blazorize.Bootstrap, Bulma, Frolic and Material, provide a IClassProvider implementation and register each component at componentMapper.

?

Mladen Macanović

@stsrki

Yes every provider must implement IClassProvider. But not every component needs custom implementation. Only the ones that have some specific structure. Most of the times they're all the same except for classnames or style settings.