@dysfunctionaljoegmail-com

@dysfunctionaljoegmail-com

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: How to use theme? #103194
    Joseph Norris
    Blocked

    What does it take to get the theme attribute working on the DropDownList?

    I tried

    import 'smart-webcomponents-react/source/styles/smart.red.css'
    
    <DropDownList theme="red"></DropDownList>
    

    but it is always blue.

    in reply to: Problem with carousel #103188
    Joseph Norris
    Blocked

    Yeah, they do. In fact, so far EVERY single sample react code produces errors. It seems your downloaded code doesn’t match up with your samples.

    The Droplist is the worst (so far). Your sample uses
    <ListItem value="1">Affogato</ListItem>
    But your actual code for ListItem objects doesn’t support a value attribute. Nor does your “theme” value work either.

    I’m in the process of evaluating your product for my company, and thus far, I WOULD NOT recommend it for purchase.

    in reply to: documentation should be more detailed #103180
    Joseph Norris
    Blocked

    Here you go. This generates the error.

    
    import {createRef, useEffect} from 'react'
    import {DropDownList, ListItem, ListItemsGroup} from 'smart-webcomponents-react/dropdownlist'
    
    const Dropdowns = () => {
      const dropdownlist = createRef<DropDownList>()
    
      useEffect(() => {}, [dropdownlist])
    
      return (
        <div>
          <DropDownList ref={dropdownlist} selectedIndexes={[0]}>
            <ListItem value='1'>Affogato</ListItem>
          </DropDownList>
        </div>
      )
    }
    export default Dropdowns
    
    • This reply was modified 1 year, 11 months ago by Joseph Norris.
    in reply to: Problem with carousel #103174
    Joseph Norris
    Blocked

    Once again (this is the fourth component in a row) the react sample code does not work as written.

    You have to use
    DataSource={generateDataSource(6)}

    in reply to: documentation should be more detailed #103132
    Joseph Norris
    Blocked

    The Dropdown list could use updating. The sample code on the website doesn’t work as written.

    Using the sample react same code the child element of ListItem with Droplist generates the following errors:

    smart.dropdownlist.js:34 Uncaught TypeError: Cannot read properties of null (reading ‘_applyTemplate’)
    Uncaught TypeError: Cannot read properties of null (reading ‘_applyTemplate’)
    Warning: Can’t perform a React state update on an unmounted component

Viewing 5 posts - 1 through 5 (of 5 total)