question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] allow for array in IndicatorIcon prop

See original GitHub issue

I’m trying to build an image gallery where the indicators are thumbnails. It would be awesome to set a check in the Indicator function component to check if props.IndicatorIcon is an array. If so, in the loop that builds the indicators use

var item = _react2.default.createElement(
    _IconButton2.default,
    {
        key: i,
        className: className,
        style: style,
        onClick: function onClick() {
            props.press(i);
        },
        size: 'small'
    },
    IndicatorIcon[i]
);

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Learuscommented, Nov 11, 2021

@nicolasmartinez0510 Do a pull request with your changes, whether they are code or documentation changes, so I can review them.

1reaction
Learuscommented, Nov 5, 2021

I usually use the /demo folder to do my tests. Copy the whole /src code into /demo/src/components/Carousel and then import the Carousel from the Example components like this:

import Carousel from './Carousel';

Edit the copied Carousel code to your liking and test simultaneously. After you’re done update the actual Carousel code by copying back into the /src folder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Type for different types inside array · Issue #115 ... - GitHub
I want to propose a feature regarding the @Type() decorator: If I have an Array of different objects (not completely different, ...
Read more >
Feature request: allow "array" properties to define an ... - GitLab
Description: Array properties cannot define an enumerator, which is bad because you can have many array properties within one class but only one ......
Read more >
Tabs - inmation Docs!
Compilation object: A single object containing a valid compilation. WebStudio looks for the presence of the version (string) and widgets (array) properties to ......
Read more >
react-material-ui-carousel | Yarn - Package Manager
Fixes issues 20, 61, 66. The first carousel item now renders without an "initial" animation. Implements feature request 92. (Breaking) The timeout prop...
Read more >
allow the Many to One node to create an array in case of ...
The simplest way to do this now is (according to me) with the following sequence: Column Splitter -> Unpivot -> Row Filter ->...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found