Where communities thrive


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

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

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

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

    greenkeeper[bot] on @feathersjs

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

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

    greenkeeper[bot] on @feathersjs

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

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

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

    (compare)

  • 14:42

    m-mujica on update-deep-observable

    (compare)

  • 14:42

    m-mujica on master

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

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

    greenkeeper[bot] on core-js-3.3.2

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

  • 10:51
    m-mujica review_requested #5374
  • 07:43
    rjgotten commented #5358
Justin Meyer
@justinbmeyer
raw is the substitute
(thanks @ivospinheiro for the tip!)
Ivo Pinheiro
@ivospinheiro
You're welcome ;-)
I had a similar question a few days ago and @roemhildtg has helped me.
Justin Meyer
@justinbmeyer
nice, thanks @roemhildtg for being the grandfather of this assist
Matthew Phillips
@matthewp
Thomas Sieverding
@Bajix
@ivospinheiro @justinbmeyer Thanks! That change makes sense. It looks like I can do type:htmlbool and make this work w/ just bar:raw so that’s still reasonably short
Gregg Roemhildt
@roemhildtg
grandfather, now I feel old ;)
qantourisc
@qantourisc
What is the best way to call a function on the viewModel of components inantiated from can.Component.view template ?
ATM I am thinking select-by-html
Julian
@pYr0x
why is my select broken if i use value
i want to use listenTo on a more complex szenario
something like this
  select: {
    type: "string",
    value: function (prop) {
      prop.listenTo("data", () => {
        resolve(this.data.get(0).value);
      });
    }
  },
  data: {
    get: function (lastSet, resolve) {
      this.dataPromise.then(resolve);
    }
  },
  dataPromise: {
    get: function () {
      return Select.getList(Object.assign({}, this.apiEndpoints)).then((response) => {
        // this.select = response[0].value;
        // this.select = "all";
        return response;
      });
    }
  }
but if you see in the codepen, the select is broken if i use value
if you comment out value the select will work again
qantourisc
@qantourisc
You didn't define what was broken.
A select sorry
@pYr0x you are trying to set value by the select element. However, value does not allow setting. You might wish to be using set get instead ?
Julian
@pYr0x
@qantourisc resovle will set the value, i thought
qantourisc @qantourisc reads up
qantourisc
@qantourisc
hmmm works here, if I change the line prop.resolve("all"); to prop.resolve(prop);
i'm litle confused here
Julian
@pYr0x
?
qantourisc
@qantourisc
@pYr0x ok got it now. What do you expect to happen when you change the select v?
Julian
@pYr0x
the select will change
and the output in the view will be the new select value
with value you cant change the select
qantourisc
@qantourisc
so when you change the select in html
then the value:bind="value" will try to to viewModel.value = new value
or some equivalent
is value(prop) settable ?
qantourisc
@qantourisc
as I understand is define:value is read-only
and it's value changed due to event
not because something is trying to cram data into it
qantourisc
@qantourisc
@pYr0x
Thomas Sieverding
@Bajix
Are there any pre-existing CanJS projects that implement the Material Design Component adapter?
Mohamed Cherif Bouchelaghem
@cherifGsoul
@Bajix What is "Material Design Component adapter"? is there a link for it?
So to bring Material Design to CanJS would only involve making wrapper components and adapters
It’s actually a pretty reasonable endeavor
IMO it would make CanJS a lot more popular too
Mohamed Cherif Bouchelaghem
@cherifGsoul
Yeah it can help
Thomas Sieverding
@Bajix
Yep. The lack of offerings like these is a major pain point when selling a team on CanJS
That’s a good reference adapter
Mohamed Cherif Bouchelaghem
@cherifGsoul
It would be nice if the community can make a project like this instead of the core team
Thomas Sieverding
@Bajix
It probably should be a collaborative effort
I’m considering building this but I’m not sure I’m up to the task of building/maintaining it solely