smartinsightsfromdata / rpivotTable

A R wrapper for the great library pivottable
Other
285 stars 71 forks source link

append style to rpivotTable css styles #108

Open jangorecki opened 4 years ago

jangorecki commented 4 years ago

I want to have my rpivotTable aligned to left side of the screen ignoring template setting. Due to the html_output template things like <div align="left"> does not work. Defining styles as the beolw works, but AFAIU the problem is it overrides rpivotTable styles provided to function call, like height="100%", which makes the table overlaying on the text which is normally below the table, when mentioned style is not added.

<style>
.rpivotTable{
  position: absolute;
  left: 10px;
}
</style>

Is there any way to simply append those styling attributes to achieve the left alignment?

smartinsightsfromdata commented 4 years ago

@nicolaskruchten Do you see a way to solve this via pivotable css?

nicolaskruchten commented 4 years ago

You should be able to override any CSS without modifying this component, using the usual CSS precedence rules, up to and including !important.