fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

List View not working as expected

Open formanter opened this issue 9 years ago • 7 comments

Bug Report

  • Package version(s): current master branch
  • Browser and OS versions: all

The List View is not working when used as a control in a simple example as a react component. Although the generated HTML seems to be correct, the stylesheet is not used, so the pure HTML is displayed.

In addition, a simple example on how to implement this component would be helpful, especially the "inbox" example.

formanter avatar Jul 03 '17 09:07 formanter

What type of example are you looking for? I assume you've seen the code examples on https://dev.office.com/fabric#/components/list?

As far as styles, we are using CSS Modules so when you import the component into your application the styles should be printed to the page along with the component. You don't need to reference a css stylesheet.

micahgodbolt avatar Jul 03 '17 16:07 micahgodbolt

I have seen the example for List on https://dev.office.com/fabric#/components/list, but unlike the other examples, this List example is not working, if I create a simple page with this code.

formanter avatar Jul 04 '17 13:07 formanter

to be more concrete: I used the DocumentCard example from here https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/DocumentCard and just inserted the sample code from above. Styles are not applied to the list component, just pure HTML is rendered.

formanter avatar Jul 05 '17 07:07 formanter

The list component does not actually have any CSS associated with it. In our examples we are using some custom CSS to create that display

https://github.com/OfficeDev/office-ui-fabric-react/blob/master/packages/office-ui-fabric-react/src/components/List/examples/List.Basic.Example.scss

micahgodbolt avatar Jul 05 '17 15:07 micahgodbolt

Ok, if I go to dev.office.com and read the documentation, it appears a bit different... anyway... but in the example for mailbox, the checkboxes are not clickable... is there still something missing? the pure JavaScript version is working instead...

formanter avatar Jul 12 '17 10:07 formanter

@formanter the list component is ONLY meant to display a list of content. What you do with that content is up to you (styles and functionality). There is nothing built into the list component that allows you to automatically create clickable mail items. It's just an example of what you could do.

micahgodbolt avatar Jul 12 '17 15:07 micahgodbolt

Closing since there hasn't been any response. Please open a new issue if you experience any problems

erichdev avatar Oct 19 '17 00:10 erichdev