@dysfunctionaljoegmail-com
@dysfunctionaljoegmail-com
Forum Replies Created
-
AuthorPosts
-
Joseph NorrisBlocked
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.
Joseph NorrisBlockedYeah, 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.
Joseph NorrisBlockedHere 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 2 years, 6 months ago by Joseph Norris.
Joseph NorrisBlockedOnce 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)}Joseph NorrisBlockedThe 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 -
AuthorPosts