kopia lustrzana https://github.com/simonw/datasette
Corrected indentation in metadata.rst
rodzic
5cf0c6c91c
commit
9e1fca4b01
|
@ -123,20 +123,20 @@ You can also disable sorting entirely by setting ``"sortable_columns": []``
|
|||
|
||||
By default, database views in Datasette do not support sorting. You can use ``sortable_columns`` to enable specific sort orders for a view called ``name_of_view`` in the database ``my_database`` like so::
|
||||
|
||||
{
|
||||
"databases": {
|
||||
"my_database": {
|
||||
"tables": {
|
||||
"name_of_view": {
|
||||
"sortable_columns": [
|
||||
"clicks",
|
||||
"impressions"
|
||||
]
|
||||
{
|
||||
"databases": {
|
||||
"my_database": {
|
||||
"tables": {
|
||||
"name_of_view": {
|
||||
"sortable_columns": [
|
||||
"clicks",
|
||||
"impressions"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.. _label_columns:
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue