删除R中闪亮的侧边栏中的粗体

时间:2018-06-28 17:38:56

标签: r shiny

我是Shiny的新手,无法弄清楚如何“粗体”标签(随附的屏幕截图中的进纸速度和操作)。这是我的UI部分代码:

let values= [];
      values =this.props.data;
      alert(values)
     this.ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
    this.state = {

      dataSource: this.ds.cloneWithRows([values]),


<ListView
        style={{width: '100%'}}
          renderHeader={() => <Text style={styles.text}>adding Started</Text>}
          dataSource={this.state.dataSource}
          renderRow={(rowData) => <View style={{borderWidth:1, borderColor: '#232C46',borderRadius: 4}}>
            <Text style={[styles.text, {backgroundColor: '#192034'}]}>{rowData}</Text>
            </View>
          }
        />

这是屏幕截图:

enter image description here

1 个答案:

答案 0 :(得分:3)

您可以通过adding your own style sheet对您的Shiny应用程序执行此操作。首先,我们为侧边栏面板提供一个类sidebar,以便我们可以对其进行引用。然后,我们可以将以下内容添加到文件www/style.css中:

.sidebar label {
  font-weight: 400;
}

最后,我们将您的theme的{​​{1}}参数设置为“ style.css”。

fluidPage

结果应如下所示:

enter image description here

相关问题