Comments (5)
Oh. I was using 2.1.2. Thanks for work.
from bladewind.
Hello @michamilz can you please confirm which version of BladewindUI you are reporting this for?
This was fixed in the latest version v2.1.4
where has_shadow="false"
actually evaluates to false.
All boolean attributes are now evaluated using FILTER_VALIDATE_BOOLEAN
.
For example $show_icon = filter_var($showIcon, FILTER_VALIDATE_BOOLEAN);
evaluates show_icon="false"
as a boolean.
But yes, I will also add the option you suggested (:has_shadow="false"
) to the documentation as well.
from bladewind.
Sorry for reopening this issue :)
Your code evaluates the hasShadow attribute using FILTER_VALIDATE_BOOLEAN
. The return value is assigned to $has_shadow
variable.
$has_shadow = filter_var($hasShadow, FILTER_VALIDATE_BOOLEAN);
If i set the has_shadow attribute for the component in my blade file, the attribute will always be overwritten in the BladewindUI component by true
.
from bladewind.
@michamilz
You are absolutely correct. Fixing now.
from bladewind.
@michamilz kindly update to v2.1.6. Fixed in there
from bladewind.
Related Issues (20)
- Items in the Select component should accept a second line. A label and its description
- The Select component should provide an optional default state (with an action) if there are no items to select
- Introduce ready to use layouts
- Remove support for Laravel 8 users
- Deprecate a couple of attributes in various components
- The Select component will completely replace the Dropdown component HOT 2
- Add a Range Slider component
- Add an Accordion component
- Card not dark in dark mode HOT 5
- I turned off dark mode using select component Causes problems with select component color How can I customize the text-color inside HOT 5
- As long as the Input component is out of black mode, there will be problems with its css. And the style cannot be modified HOT 3
- Make required select component non-clearable HOT 1
- Required manual select components do not expand HOT 3
- Introduce default global configurations
- Modify the default button design
- Implement global configuration for components
- Unify colours used throughout components
- DATE PICKER HOT 6
- Set the date default value from javascript HOT 3
- Icons don't display when using dot syntax HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bladewind.