Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 14 21:13
    greenkeeper[bot] labeled #5378
  • Oct 14 21:12
    greenkeeper[bot] opened #5378
  • Oct 14 21:12

    greenkeeper[bot] on can-simple-map-4.3.3

    fix(package): update can-simple… (compare)

  • Oct 14 20:19
    greenkeeper[bot] labeled #5377
  • Oct 14 20:19
    greenkeeper[bot] opened #5377
  • Oct 14 20:19

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Oct 14 20:18
    greenkeeper[bot] labeled #5376
  • Oct 14 20:18
    greenkeeper[bot] opened #5376
  • Oct 14 20:18

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Oct 14 14:43
    greenkeeper[bot] closed #5373
  • Oct 14 14:43

    greenkeeper[bot] on can-deep-observable-1.0.1

    (compare)

  • Oct 14 14:42

    m-mujica on update-deep-observable

    (compare)

  • Oct 14 14:42

    m-mujica on master

    Update can-deep-observable to l… Merge pull request #5374 from c… (compare)

  • Oct 14 14:42
    m-mujica closed #5374
  • Oct 14 14:42
    m-mujica closed #5365
  • Oct 14 14:09
    f-ricci starred canjs/canjs
  • Oct 14 13:55
    greenkeeper[bot] commented #5375
  • Oct 14 13:55

    greenkeeper[bot] on core-js-3.3.2

    chore(package): update core-js … (compare)

  • Oct 14 10:51
    m-mujica review_requested #5374
  • Oct 14 07:43
    rjgotten commented #5358
Frank Lemanschik
@frank-dspeed
can-element is a WebComponent it registers a Custom Element in the browser Custom Element API read about that via https://webcomponents.org
you can use a can-component inside can-element but can-element inside can-component leads to unexpected behaviers
Jeroen Cornelissen
@jeroencornelissen
Ok, will have you look into that or go vanilla js for rendering.
Kevin Phillips
@phillipskevin
does each row need to be a component?
Jeroen Cornelissen
@jeroencornelissen
*have to
Not sure, but it looked the best solution architect first.
Man, autocorrect
Frank Lemanschik
@frank-dspeed
you got autocorrection inside gitter?
that would help me a lot what are you using :)
Jeroen Cornelissen
@jeroencornelissen
I'm on mobile
Frank Lemanschik
@frank-dspeed
ah ya that ....
i understand the problem 100%
are you using google keyboard?
it works most best and remembers custom words
the best i found on android
Jeroen Cornelissen
@jeroencornelissen
Problem is that each row can contain difficult configs, settings, ... So my stache has a lot of if's, switches and helpers.
And each row can contain other components.
Frank Lemanschik
@frank-dspeed
i am using stache helpers for that
like in the bitballs example via options.context.PropertyNameInDefineMap
@jeroencornelissen look into the bitballs/public/src/app.js
Jeroen Cornelissen
@jeroencornelissen
Ok. Thx
Frank Lemanschik
@frank-dspeed
the pageComponentsConfig helper
example is really powerfull
Jeroen Cornelissen
@jeroencornelissen
@frank-dspeed @phillipskevin if can-element uses native Custom Elements then browsersupport isn’t good? Or is it polyfilled?
https://caniuse.com/#search=custom%20Elements
Viktor Busko
@Lighttree
This is interesting topic. Am I right that its better to use can-element if you can ? Based on one of the latest videos (don't remember which exactly) there is idea that can-elementpreferred option.
Frank Lemanschik
@frank-dspeed
@Lighttree @jeroencornelissen browser support is well yes it exists the google polyfill
can-element is the most best option for individual elements but its missing stuff like composing of components
while it would support composing of can-elements
you can also use a can-element to act as a can-component entry point
and from there on stache and can-view-callbacks
take over
so can-element is in terms of donejs only usefull to do the inital rendering
else it has not out of the box advantage
can-component registers a can-view-callback that renders the tag
can-element registers a element that renders it self
can-element at current offical state is not useable as real replacement for can-component
i created Elements with can-element that render can-components for example
or that are using can-define
but all that is custom work
can-element bare at present is only use able as base for a element its more a skeletton then anything else at current state because its missing the real Element replacements for the functionality that can-stache and that offers
Frank Lemanschik
@frank-dspeed
for a example i created a can-route-element with a own router version
because can-route would not work as good in a can-element only scenario
as you will not have the ability to pass down vars so easy
Conclusion can-element will replace can-component done-component 100% no question there
but it needs a lot of coding to use its nativ methods
Chasen Le Hara
@chasenlehara
@jeroencornelissen Yes, you do need to use a polyfill if you want to target anything other than Chrome or Safari.
@Lighttree We have some work to do before I would really recommend using can-element over can-component, although I think that is the eventual goal.
Looking through the issues, you can see that there’s a good chunk of work to be done: https://github.com/canjs/can-element/issues
Brad Momberger
@bmomberger-bitovi
I need help with can-connect/real-time and a set algebra
Our algebra looks like this: