Comments (8)
I do agree with you. We have never had that requirement but it is an important part of the flex box universe (and trivial to implement) so sure, will do.
from re-com.
I'm cautious about every additional named arg (on any component, not just this one). We don't want perpetually expanding named args lists (and that's what will happen unless we are on our guard).
As frozenlock says :style
is the easy escape hatch -- you can do anything there. Named args, on the other hand, are for what we see as THE most common usecases.
For something to get "promoted" from :style
or :attr
to a named arg
it must be used in, what?, 50% of cases? Dunno exactly what the criterial is, but you get the idea -- I'd like the bar to be high.
So, as a general rule, we should default to saying "no" to new named args, unless the case is strong.
None of this is to say that, in this case, the answer is "no". This is just me setting a mental framework.
from re-com.
so what do you think about passing all unused keyword args directly to :style?
But I guess that breaks the iron fist of gregg 👊
from re-com.
I often add :on-click
to various components... I'd rather not having that sent into the style map. 😉
edit: Oh wait, in re-com you need to place into :attr
... nevermind.
Using :style
is not so bad, but the thing that bugs me in this particular case is that the boxes are an almost complete abstraction.
I can use them without knowing anything about flexbox.
The wrap issue was the first thing that really threw me off and forced me to check some documentation.
from re-com.
👊 (for Stu)
from re-com.
@Frozenlock I'm pleasantly surprised - I thought the layout side of things was a fairly leaky abstraction over flexbox. Damn useful, hopefully, but leaky. Must be more watertight than I thought, which is good!
So, it sounds like you wanted :allow-wrap?
more for reasons of completeness, than grinding, constant hassle.
Next, I can straight-away imagine the need for :on-click
in various places. Were there any components in particular?
(BTW, the "iron first of Gregg" mentions are a reference to Gregg's jack-booted ways when it comes to "tweaking" APIs and calmly ignoring the blood curdling screams of those affected. For the greater good, he claims, but some wonder. So, an insiders joke, but now you know. Fear the fist)
from re-com.
So, it sounds like you wanted :allow-wrap? more for reasons of completeness, than grinding, constant hassle.
Correct. I only needed it once so far, and I've been pretty busy with re-com
. 😄
I don't mind using :attr
for the random :on-click
. I don't think it occurs enough to warrant its own key. (Outside of buttons)
from re-com.
So, I think this can be closed without further action.
from re-com.
Related Issues (20)
- Allow v-table :model to render re-frame subscriptions as well as reagent atoms? HOT 5
- Validate r/atom vs cljs.core/atom for :modal Arguments
- problem with simple-v-table?
- simple-v-table: Unknown parameter: :striped? HOT 1
- Base font size
- Bootstrap out of date HOT 2
- Tour component demo breaks on clicking "Start Tour!" button HOT 1
- Filter issue when using hiccup for labels in multi-select
- Check-box styling is overridden by browser instead of bootstrap HOT 2
- disabled list should not show on hover background HOT 2
- Conflicting documentation in splits HOT 1
- Datepicker header height increases when a disabled next or previous year button is displayed HOT 1
- Missing icons? HOT 1
- Pass event to popover :on-cancel
- status icon :error has incorrect zmdi-spinner in class
- v-table scrollbar thumb colors are hardcoded (potential PR)
- reagent 1.2.0 reagent.dom/dom-node is deprecated HOT 1
- Bizarre issue with the typeahead component HOT 1
- enhancement: Support :enabled? prop on tab components HOT 1
- horizontal-bar-tabs: Suppress redundant on-click handler calls HOT 3
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 re-com.