Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 21 21:15
    greenkeeper[bot] commented #5237
  • Sep 21 21:15

    greenkeeper[bot] on @feathersjs

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

  • Sep 21 21:12
    greenkeeper[bot] commented #5236
  • Sep 21 21:12

    greenkeeper[bot] on @feathersjs

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

  • Sep 21 03:58

    greenkeeper[bot] on @octokit

    (compare)

  • Sep 21 03:57

    greenkeeper[bot] on @octokit

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

  • Sep 20 21:04
    m-mujica commented #5303
  • Sep 20 20:23
    m-mujica opened #5303
  • Sep 20 20:23

    m-mujica on upgrade-deps

    Update can-type and can-stache-… (compare)

  • Sep 20 20:05
    m-mujica edited #5302
  • Sep 20 20:03
    m-mujica synchronize #5302
  • Sep 20 20:03

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight Use svg images (instead of .png) (compare)

  • Sep 20 19:32
    m-mujica opened #5302
  • Sep 20 19:29

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight (compare)

  • Sep 20 17:42

    m-mujica on upgrade

    WIP: Upgrade (compare)

  • Sep 20 17:06
    do-adams starred canjs/canjs
  • Sep 20 13:34

    chasenlehara on 5119-testing-guide

    Update the Testing guide for Ca… (compare)

  • Sep 20 13:21
    cherifGsoul commented #5295
  • Sep 20 13:18
    cherifGsoul synchronize #5295
  • Sep 20 13:18

    cherifGsoul on update-theme-new-buttons

    Theme pre-release 2 (compare)

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
Julian
@pYr0x
@justinbmeyer you said that setting a default select should be in a different way, can you tell me what do you mean? :point_up: 28. Juni 2018 04:47
because i did something links this but that dont work :point_up: 18. August 2018 20:02
Justin Meyer
@justinbmeyer
Julian, I might be able to take a look in 2hrs. I’m interviewing some folks.
Julian
@pYr0x
alright ... no hurry.. i am still in the office
Justin Meyer
@justinbmeyer
@Bajix plant the seed. Others might help it grow.
Justin Meyer
@justinbmeyer
@pYr0x so, I've forgotten what you are trying to do, can you summarize it for me?
You want this.select = "all"; to be set when a promise resolves?
Justin Meyer
@justinbmeyer
Julian
@pYr0x
i want to fill a select dropdown with a REST API and select the first item of the list