Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
iso
@iso1048
@hashtagyolo1 Do you know how to access data from nested objects/arrays?
LiciniusRex
@hashtagyolo1
@gothamknight Just had a buddy jump on the line and help me out. I do know how to do that, but wasn't sure enough of myself to know where to go
https://codepen.io/LiciniusRex/pen/ZJoGVp
All functioning. Now to make it pretty
iso
@iso1048
@hashtagyolo1 awesome.
LiciniusRex
@hashtagyolo1
I can already see how much of a change this will make to the complexity of websites I can make. It's pretty eye opening tbh
Gaurav
@gauravmagan
hi calling the data from mock generated
Screen Shot 2017-08-21 at 5.04.11 PM.png
Lallo Vigil
@lalov1
I've been struggling with finishing some items on the Simon project. Could anyone help me? https://codepen.io/lalov1/pen/MvgvxY
Gaurav
@gauravmagan
Screen Shot 2017-08-21 at 5.04.29 PM.png
but unable to display the data on front end
Moisés Man
@moigithub
let data; <-- have no values
http://bootstrap-table.wenzhixin.net.cn/examples/
should be something like
let data =[{first_name: 'boo', last_name:'baaa', Phone: '341324324', email:'asdfs@mail.com', image:'xxx'}]
Gulsvi
@gulsvi
And, that table should probably have a <thead> and <tbody>
(not sure if bootstrap react adds that stuff in for you)
iso
@iso1048
@SkyC0der what kind of stuff can react, angular do that vanilla js and jquery cannot. (Am I right in saying that node js can communicate with a server...)?
Gaurav
@gauravmagan
@moigithub i have got the mockaroo data
Gulsvi
@gulsvi
@gothamknight Lots of stuff, but it's all JavaScript in the end.
Moisés Man
@moigithub
soo before calling bootstrapTable method.. data have values '?? @gauravmagan
cuz on the code u showing on top.. u just declaring it just before calling bootstrapTable
Gulsvi
@gulsvi
@gothamknight Node.js is a server
(and more)
Moisés Man
@moigithub
@gauravmagan u can discard if ur boostrapTable method working by hardcoding some values like the example on the link/above and see IF it renders
Jay Vora
@jayvora92
image.png
hey how can we capture title name instead of value. its a dropdown selection.
right now my return value is 154 but want the title
iso
@iso1048
@SkyC0der oh right. thanks.
CamperBot
@camperbot
gothamknight sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:star2: 2524 | @skyc0der |http://www.freecodecamp.com/skyc0der
Jay Vora
@jayvora92
@moigithub right now my code is like this
function() {
  var list = document.querySelector('select[name="jobType"]');
  return list ? list.options[list.selectedIndex].value : undefined;  
}
where should i enter text() ?
Moisés Man
@moigithub
element.options[ element.selectedIndex ].text
change value for text
Gaurav
@gauravmagan
@moigithub yes data have some values
and its the json data @moigithub
Screen Shot 2017-08-21 at 5.44.07 PM.png
Screen Shot 2017-08-21 at 5.45.03 PM.png
@moigithub
Screen Shot 2017-08-21 at 5.45.46 PM.png
Screen Shot 2017-08-21 at 5.46.13 PM.png
and am calling in this page
@moigithub i have put all the json test data in the data variable and passed into the function and the file consisting the function is called in the view page
Gulsvi
@gulsvi
@jayvora92
function () {
  var list = document.querySelector('select[name="jobType"]');
  return list ? [...list.options].map(option => option.textContent) : undefined;
}
Jay Vora
@jayvora92
@SkyC0der i used .text instead of value it worked @moigithub thanks for that link
CamperBot
@camperbot
:star2: 2525 | @skyc0der |http://www.freecodecamp.com/skyc0der
:star2: 3601 | @moigithub |http://www.freecodecamp.com/moigithub
jayvora92 sends brownie points to @skyc0der and @moigithub :sparkles: :thumbsup: :sparkles:
Gulsvi
@gulsvi
@jayvora92 I believe textContent is the standard for browser compatibility, though .text should probably work in modern browsers.
Gaurav
@gauravmagan
@moigithub its not rendering by discarding
may be something wrong with the function
Andrew Knox
@iamknox
Hey hope every one is doing well. Was hoping someone could help me understand why the "plus" button isn't filling the rest of the space in its column. Any input greatly appreciated. http://i.imgur.com/1j7V8bX.png
Moisés Man
@moigithub
@gauravmagan linked bootstrap-table.js ?
Gaurav
@gauravmagan
no
Screen Shot 2017-08-21 at 5.58.32 PM.png