Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Card] RightIconButton #1120

Closed
ghost opened this issue Jul 11, 2015 · 2 comments
Closed

[Card] RightIconButton #1120

ghost opened this issue Jul 11, 2015 · 2 comments
Labels
new feature New feature or request

Comments

@ghost
Copy link

ghost commented Jul 11, 2015

Is there are any work arounds to get a rightIconButton in a card header or card title component?

@hai-cea hai-cea changed the title Card RightIconButton [Card] RightIconButton Jul 11, 2015
@hai-cea
Copy link
Member

hai-cea commented Jul 11, 2015

@vig9295 It doesn't look like that's currently possible - a code change will be needed.

@alitaheri alitaheri added new feature New feature or request and removed Enhancement labels Dec 8, 2015
@halayli
Copy link

halayli commented Mar 19, 2016

In the meantime, you can do the following:

function getStyles() {
  return {
      top: 0,
      right: 0,
      zIndex: 2,
      position: 'absolute',
  };
}

const rightIconButton =
  <IconButton iconStyle={ { color: Colors.grey400, fontSize: 18 } } >
    <FontIcon className="material-icons">more_vert</FontIcon>
  </IconButton>;

<Card style={ { position: 'relative' } }>
  <IconMenu style={ getStyles() } iconButtonElement={ rightIconButton }>
    <MenuItem>Configure</MenuItem>
    <MenuItem>Disable</MenuItem>
   </IconMenu>
   ...
</Card>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants